...
|
...
|
@@ -34,16 +34,16 @@ screen_change(int x1, int y1, int x2, int y2)
|
34
|
34
|
}
|
35
|
35
|
|
36
|
36
|
static void
|
37
|
|
-screen_fill(Uint8 *pixels, int x1, int y1, int x2, int y2, int color)
|
|
37
|
+screen_fill(Uint8 *layer, int x1, int y1, int x2, int y2, int color)
|
38
|
38
|
{
|
39
|
39
|
int x, y, width = uxn_screen.width, height = uxn_screen.height;
|
40
|
40
|
for(y = y1; y < y2 && y < height; y++)
|
41
|
41
|
for(x = x1; x < x2 && x < width; x++)
|
42
|
|
- pixels[x + y * width] = color;
|
|
42
|
+ layer[x + y * width] = color;
|
43
|
43
|
}
|
44
|
44
|
|
45
|
45
|
static void
|
46
|
|
-screen_blit(Uint8 *pixels, Uint8 *ram, Uint16 addr, int x1, int y1, int color, int flipx, int flipy, int twobpp)
|
|
46
|
+screen_blit(Uint8 *layer, Uint8 *ram, Uint16 addr, int x1, int y1, int color, int flipx, int flipy, int twobpp)
|
47
|
47
|
{
|
48
|
48
|
int v, h, width = uxn_screen.width, height = uxn_screen.height, opaque = (color % 5) || !color;
|
49
|
49
|
for(v = 0; v < 8; v++) {
|
...
|
...
|
@@ -54,7 +54,7 @@ screen_blit(Uint8 *pixels, Uint8 *ram, Uint16 addr, int x1, int y1, int color, i
|
54
|
54
|
if(opaque || ch) {
|
55
|
55
|
Uint16 x = x1 + (flipx ? 7 - h : h);
|
56
|
56
|
if(x < width && y < height)
|
57
|
|
- pixels[x + y * width] = blending[ch][color];
|
|
57
|
+ layer[x + y * width] = blending[ch][color];
|
58
|
58
|
}
|
59
|
59
|
}
|
60
|
60
|
}
|