commit 3af1098
Devine Lu Linvega
·
2026-01-10 04:17:22 +0000 UTC
parent 9c7bf5c
Cleanup after removing all branching from 8px row
1 files changed,
+3,
-5
+3,
-5
1@@ -598,16 +598,14 @@ screen_deo_sprite(void)
2 int i, j, x = rX, y = rY;
3 const int ctrl = dev[0x2f];
4 const int blend = ctrl & 0xf;
5- const const int opaque_mask = -(blend % 5);
6- const int flipx = ctrl & 0x10;
7- const int flipy = ctrl & 0x20;
8+ const int opaque_mask = -(blend % 5);
9+ const int flipx = ctrl & 0x10, dx = flipx ? -rDY : rDY;
10+ const int flipy = ctrl & 0x20, dy = flipy ? -rDX : rDX;
11 const int layer_mask = (ctrl & 0x40) ? 0x3 : 0xc;
12 const Uint8 *table = (ctrl & 0x40) ? blending[blend][1] : blending[blend][0];
13 const int is_2bpp = (ctrl & 0x80) != 0;
14 const int addr_incr = rMA << (is_2bpp ? 2 : 1);
15 const int stride = screen_wmar2;
16- const int dx = flipx ? -rDY : rDY;
17- const int dy = flipy ? -rDX : rDX;
18 const int qfy = flipy ? 7 : 0;
19 const int src_stride = flipy ? -1 : 1;
20 for(i = 0; i <= rML; i++, x += dx, y += dy, rA += addr_incr) {