uxn

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

commit 13570f790d33ccad25078d7f5a345edad0e183d0
parent 7090ab72b907a49b204dc257461958e84f5def91
Author: neauoire <aliceffekt@gmail.com>
Date:   Tue,  8 Aug 2023 10:39:11 -0700

(screen.c) Hide stack debugger when empty

Diffstat:
Msrc/devices/screen.c | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/devices/screen.c b/src/devices/screen.c @@ -155,13 +155,12 @@ void screen_debugger(Uxn *u) { int i; - for(i = 0; i < u->wst.ptr + 1; i++) + for(i = 0; i < u->wst.ptr; i++) draw_byte(u->wst.dat[i], i * 0x18 + 0x8, uxn_screen.height - 0x18, 0x2); - for(i = 0; i < u->rst.ptr + 1; i++) + for(i = 0; i < u->rst.ptr; i++) draw_byte(u->rst.dat[i], i * 0x18 + 0x8, uxn_screen.height - 0x10, 0x3); - for(i = 0; i < 0x40; i++) { - draw_byte(u->ram[i], (i & 0x7) * 0x18 + 0x8, ((i >> 3) << 3) + 0x8, 0x2 + !!u->ram[i]); - } + for(i = 0; i < 0x40; i++) + draw_byte(u->ram[i], (i & 0x7) * 0x18 + 0x8, ((i >> 3) << 3) + 0x8, 1 + !!u->ram[i]); } Uint8