diff --git a/src/devices/screen.c b/src/devices/screen.c index 27e56c1..f644ddc 100644 --- a/src/devices/screen.c +++ b/src/devices/screen.c @@ -96,16 +96,16 @@ screen_debugger(Uxn *u) int i; for(i = 0; i < 0x08; i++) { Uint8 pos = u->wst.ptr - 4 + i; - Uint8 color = i > 4 ? 0x01 : !pos ? 0xc : - i == 4 ? 0x8 : - 0x2; + Uint8 color = i > 4 ? 0x01 : !pos ? 0xc + : i == 4 ? 0x8 + : 0x2; draw_byte(u->wst.dat[pos], i * 0x18 + 0x8, uxn_screen.height - 0x18, color); } for(i = 0; i < 0x08; i++) { Uint8 pos = u->rst.ptr - 4 + i; - Uint8 color = i > 4 ? 0x01 : !pos ? 0xc : - i == 4 ? 0x8 : - 0x2; + Uint8 color = i > 4 ? 0x01 : !pos ? 0xc + : i == 4 ? 0x8 + : 0x2; draw_byte(u->rst.dat[pos], i * 0x18 + 0x8, uxn_screen.height - 0x10, color); } screen_blit(uxn_screen.fg, arrow, 0, 0x68, uxn_screen.height - 0x20, 3, 0, 0, 0); @@ -156,6 +156,7 @@ screen_resize(Uint16 width, Uint16 height) screen_fill(uxn_screen.bg, 0, 0, width, height, 0); screen_fill(uxn_screen.fg, 0, 0, width, height, 0); emu_resize(width, height); + screen_change(0, 0, width, height); } void