commit 4690a11
neauoire
·
2023-08-16 20:46:36 +0000 UTC
parent 8edf2da
Fixed issue with debugger
1 files changed,
+9,
-7
+9,
-7
1@@ -149,11 +149,15 @@ screen_redraw(Uxn *u)
2 {
3 Uint8 *fg = uxn_screen.fg, *bg = uxn_screen.bg;
4 Uint32 palette[16], *pixels = uxn_screen.pixels;
5- int i, x, y, w = uxn_screen.width, h = uxn_screen.height;
6- int x1 = uxn_screen.x1;
7- int y1 = uxn_screen.y1;
8- int x2 = uxn_screen.x2 > w ? w : uxn_screen.x2;
9- int y2 = uxn_screen.y2 > h ? h : uxn_screen.y2;
10+ int i, x, y, w = uxn_screen.width, h = uxn_screen.height, x1, y1, x2, y2;
11+ if(u->dev[0x0e]) {
12+ screen_change(0, 0, w, h);
13+ screen_debugger(u);
14+ }
15+ x1 = uxn_screen.x1;
16+ y1 = uxn_screen.y1;
17+ x2 = uxn_screen.x2 > w ? w : uxn_screen.x2;
18+ y2 = uxn_screen.y2 > h ? h : uxn_screen.y2;
19 for(i = 0; i < 16; i++)
20 palette[i] = uxn_screen.palette[(i >> 2) ? (i >> 2) : (i & 3)];
21 for(y = y1; y < y2; y++)
22@@ -163,8 +167,6 @@ screen_redraw(Uxn *u)
23 }
24 uxn_screen.x1 = uxn_screen.y1 = 0xffff;
25 uxn_screen.x2 = uxn_screen.y2 = 0;
26- if(u->dev[0x0e])
27- screen_debugger(u);
28 }
29
30 Uint8