commit ebdbe00
Devine Lu Linvega
·
2026-01-10 03:48:46 +0000 UTC
parent 22f934f
Cleanup
1 files changed,
+3,
-3
+3,
-3
1@@ -621,9 +621,9 @@ screen_deo_sprite(void)
2 Uint8 *d = dst, bit = flipx ? 0x01 : 0x80;
3 for(int px = 0; px < 8; px++, d++) {
4 const int color = ((ch1 & bit) ? 1 : 0) | ((ch2 & (bit << 1)) ? 2 : 0);
5- const Uint8 mask = (color | opaque_mask) ? 0xFF : 0x00;
6- const Uint8 newp = (*d & layer_mask) | table[color];
7- *d = (*d & ~mask) | (newp & mask);
8+ const Uint8 mask = (color | opaque_mask) ? 0xff : 0x00;
9+ const Uint8 next = (*d & layer_mask) | table[color];
10+ *d = (*d & ~mask) | (next & mask);
11 if(flipx) bit <<= 1;
12 else bit >>= 1;
13 }