commit 24285d1d5d1d1748e0a554d288ebb8b9006ef570
parent ac6e4fed108e412c763ebd1212e8a19f3b7e86f8
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date: Thu, 15 Sep 2022 11:12:57 -0700
Fixed issue with monochromatic
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/devices/screen.c b/src/devices/screen.c
@@ -108,12 +108,11 @@ screen_redraw(UxnScreen *p, Uint32 *pixels)
palette[i] = p->palette[(i >> 2) ? (i >> 2) : (i & 3)];
if(p->mono) {
for(i = 0; i < size; i++)
- pixels[i] = palette_mono[(p->fg.pixels[i] << 2 | p->bg.pixels[i]) & 0x1];
+ pixels[i] = palette_mono[(p->fg.pixels[i] ? p->fg.pixels[i] : p->bg.pixels[i]) & 0x1];
} else {
for(i = 0; i < size; i++)
pixels[i] = palette[p->fg.pixels[i] << 2 | p->bg.pixels[i]];
}
-
p->fg.changed = p->bg.changed = 0;
}