uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 332fbed11e7e6b332aa40b56ce1c5071126d074e
parent c8f47d8a0833afa96dd8501311f775bee5aadb25
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Sun, 19 Sep 2021 22:56:33 +0100

Only set size when Screen/height is written

Diffstat:
Msrc/uxnemu.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/uxnemu.c b/src/uxnemu.c @@ -351,11 +351,8 @@ screen_talk(Device *d, Uint8 b0, Uint8 w) } else switch(b0) { - case 0x3: - set_size(peek16(d->dat, 0x2), ppu.height); - break; case 0x5: - set_size(ppu.width, peek16(d->dat, 0x4)); + set_size(peek16(d->dat, 0x2), peek16(d->dat, 0x4)); break; case 0xe: { Uint16 x = peek16(d->dat, 0x8);