commit 1bf7efc

Devine Lu Linvega  ·  2025-12-29 18:20:53 +0000 UTC
parent 0603510
Fixed int overflow in palette
1 files changed,  +1, -1
+1, -1
1@@ -447,7 +447,7 @@ screen_change(const int x1, const int y1, const int x2, const int y2)
2 static void
3 screen_colorize(void)
4 {
5-	int i, shift, colors[4];
6+	unsigned int i, shift, colors[4];
7 	for(i = 0, shift = 4; i < 4; ++i, shift ^= 4) {
8 		Uint8
9 			r = dev[0x8 + i / 2] >> shift & 0xf,