(screen) redraw on resize
This commit is contained in:
parent
d53473175c
commit
59edc06ae0
|
@ -96,16 +96,16 @@ screen_debugger(Uxn *u)
|
||||||
int i;
|
int i;
|
||||||
for(i = 0; i < 0x08; i++) {
|
for(i = 0; i < 0x08; i++) {
|
||||||
Uint8 pos = u->wst.ptr - 4 + i;
|
Uint8 pos = u->wst.ptr - 4 + i;
|
||||||
Uint8 color = i > 4 ? 0x01 : !pos ? 0xc :
|
Uint8 color = i > 4 ? 0x01 : !pos ? 0xc
|
||||||
i == 4 ? 0x8 :
|
: i == 4 ? 0x8
|
||||||
0x2;
|
: 0x2;
|
||||||
draw_byte(u->wst.dat[pos], i * 0x18 + 0x8, uxn_screen.height - 0x18, color);
|
draw_byte(u->wst.dat[pos], i * 0x18 + 0x8, uxn_screen.height - 0x18, color);
|
||||||
}
|
}
|
||||||
for(i = 0; i < 0x08; i++) {
|
for(i = 0; i < 0x08; i++) {
|
||||||
Uint8 pos = u->rst.ptr - 4 + i;
|
Uint8 pos = u->rst.ptr - 4 + i;
|
||||||
Uint8 color = i > 4 ? 0x01 : !pos ? 0xc :
|
Uint8 color = i > 4 ? 0x01 : !pos ? 0xc
|
||||||
i == 4 ? 0x8 :
|
: i == 4 ? 0x8
|
||||||
0x2;
|
: 0x2;
|
||||||
draw_byte(u->rst.dat[pos], i * 0x18 + 0x8, uxn_screen.height - 0x10, color);
|
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);
|
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.bg, 0, 0, width, height, 0);
|
||||||
screen_fill(uxn_screen.fg, 0, 0, width, height, 0);
|
screen_fill(uxn_screen.fg, 0, 0, width, height, 0);
|
||||||
emu_resize(width, height);
|
emu_resize(width, height);
|
||||||
|
screen_change(0, 0, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue