commit 59edc06
neauoire
·
2023-11-09 22:46:38 +0000 UTC
parent d534731
(screen) redraw on resize
1 files changed,
+7,
-6
+7,
-6
1@@ -96,16 +96,16 @@ screen_debugger(Uxn *u)
2 int i;
3 for(i = 0; i < 0x08; i++) {
4 Uint8 pos = u->wst.ptr - 4 + i;
5- Uint8 color = i > 4 ? 0x01 : !pos ? 0xc :
6- i == 4 ? 0x8 :
7- 0x2;
8+ Uint8 color = i > 4 ? 0x01 : !pos ? 0xc
9+ : i == 4 ? 0x8
10+ : 0x2;
11 draw_byte(u->wst.dat[pos], i * 0x18 + 0x8, uxn_screen.height - 0x18, color);
12 }
13 for(i = 0; i < 0x08; i++) {
14 Uint8 pos = u->rst.ptr - 4 + i;
15- Uint8 color = i > 4 ? 0x01 : !pos ? 0xc :
16- i == 4 ? 0x8 :
17- 0x2;
18+ Uint8 color = i > 4 ? 0x01 : !pos ? 0xc
19+ : i == 4 ? 0x8
20+ : 0x2;
21 draw_byte(u->rst.dat[pos], i * 0x18 + 0x8, uxn_screen.height - 0x10, color);
22 }
23 screen_blit(uxn_screen.fg, arrow, 0, 0x68, uxn_screen.height - 0x20, 3, 0, 0, 0);
24@@ -156,6 +156,7 @@ screen_resize(Uint16 width, Uint16 height)
25 screen_fill(uxn_screen.bg, 0, 0, width, height, 0);
26 screen_fill(uxn_screen.fg, 0, 0, width, height, 0);
27 emu_resize(width, height);
28+ screen_change(0, 0, width, height);
29 }
30
31 void