commit 17e95cb

Devine Lu Linvega  ·  2026-01-08 01:41:54 +0000 UTC
parent b244782
Removed sch2
1 files changed,  +3, -4
+3, -4
 1@@ -626,11 +626,10 @@ screen_deo_sprite(void)
 2 		const Uint16 x0 = x + 8, y0 = y + 8;
 3 		if(x0 + 8 >= stride || y0 + 8 >= screen_hmar2) continue;
 4 		Uint8 *dst = &screen_layers[x0 + y0 * stride];
 5-		const Uint8 *sch1 = &ram[rA + qfy];
 6-		const Uint8 *sch2 = is_2bpp ? sch1 + 8 : NULL;
 7-		for(row = 0; row < 8; row++, dst += stride, sch1 += fy, sch2 += fy) {
 8+		const Uint8 *src = &ram[rA + qfy];
 9+		for(row = 0; row < 8; row++, dst += stride, src += fy) {
10 			int qx = qfx;
11-			const int ch1 = *sch1, ch2 = is_2bpp ? (*sch2 << 1) : 0;
12+			const int ch1 = *src, ch2 = is_2bpp ? (src[8] << 1) : 0;
13 			for(px = 0; px < 8; px++, qx -= fx) {
14 				int color = ((ch1 >> qx) & 1) | ((ch2 >> qx) & 2);
15 				if(opaque || color)