commit c8ee996

Devine Lu Linvega  ·  2026-01-10 00:38:56 +0000 UTC
parent 6307e2e
Removed row variable
1 files changed,  +4, -2
+4, -2
 1@@ -595,7 +595,7 @@ screen_deo_pixel(void)
 2 static void
 3 screen_deo_sprite(void)
 4 {
 5-	int i, row, px, x = rX, y = rY;
 6+	int i, px, x = rX, y = rY;
 7 	const int ctrl = dev[0x2f];
 8 	const int blend = ctrl & 0xf;
 9 	const int opaque = blend % 5;
10@@ -617,7 +617,9 @@ screen_deo_sprite(void)
11 		if(x0 + 8 >= stride || y0 + 8 >= screen_hmar2) continue;
12 		Uint8 *dst = &screen_layers[x0 + y0 * stride];
13 		const Uint8 *src = &ram[rA + qfy];
14-		for(row = 0; row < 8; row++, dst += stride, src += src_stride) {
15+		const Uint8 *src_end = src + 8 * src_stride;
16+
17+		for(; src != src_end; dst += stride, src += src_stride) {
18 			const int ch1 = *src, ch2 = is_2bpp ? (src[8] << 1) : 0;
19 			int qx = qfx;
20 			for(px = 0; px < 8; px++, qx += qx_step) {