commit 3ae58ee
Devine Lu Linvega
·
2026-03-13 17:25:35 +0000 UTC
parent 03a8c0c
Removed needless shift in sprite
1 files changed,
+3,
-2
+3,
-2
1@@ -508,10 +508,11 @@ screen_deo_sprite(void)
2 const Uint8 *col = &ram[rA + col_start];
3 for(j = 0; j < 8; j++, dst += stride, col += col_delta) {
4 Uint8 *d = dst;
5- const int ch1 = *col, ch2 = is_2bpp ? col[8] : 0;
6+ const int ch1 = *col;
7+ const int ch2 = is_2bpp ? (col[8] << 1) : 0;
8 int row = row_start;
9 for(int k = 0; k < 8; k++, d++, row += row_delta) {
10- const int color = ((ch1 >> row) & 1) | (((ch2 >> row) & 1) << 1);
11+ const int color = ((ch1 >> row) & 1) | ((ch2 >> row) & 2);
12 if(opaque_mask || color)
13 *d = (*d & layer_mask) | table[color];
14 }