ref: 602ff71c76e6b4ee9af2a7dd423a6fd906a8ac11
parent: f367cc559968dc10f81eabd39227a4793beaf1b3
author: qwx <>
date: Sat Jun 17 12:52:04 EDT 2017
vid: don't set repl in allocimage like a dolt
--- a/vid.c
+++ b/vid.c
@@ -113,7 +113,7 @@
}
if((framebuf = malloc(sizeof *framebuf * vid.width * vid.height * screen->depth/8)) == nil)
sysfatal("resetfb:malloc: %r");
- if((fbim = allocimage(display, Rect(0, 0, vid.width, vid.height), screen->chan, 1, DNofill)) == nil)
+ if((fbim = allocimage(display, Rect(0, 0, vid.width, vid.height), XRGB32, 0, 0)) == nil)
sysfatal("resetfb: %r");
vid.buffer = framebuf;
vid.rowbytes = vid.width * screen->depth/8;