From 855b63b1ef8433cb0387da34e6cbe2aa61f469e3 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sun, 30 Apr 2023 10:24:14 -0700 Subject: [PATCH] Housekeeping --- src/devices/screen.c | 2 +- src/uxncli.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/screen.c b/src/devices/screen.c index d943894..b2ad302 100644 --- a/src/devices/screen.c +++ b/src/devices/screen.c @@ -71,7 +71,7 @@ screen_resize(UxnScreen *p, Uint16 width, Uint16 height) { Uint8 *bg, *fg; Uint32 *pixels; - if(width < 0x20 || height < 0x20 || width >= 0x400 || height >= 0x400) + if(width < 0x8 || height < 0x8 || width >= 0x400 || height >= 0x400) return; bg = realloc(p->bg.pixels, width * height), fg = realloc(p->fg.pixels, width * height); diff --git a/src/uxncli.c b/src/uxncli.c index 56d0b8e..9c40abd 100644 --- a/src/uxncli.c +++ b/src/uxncli.c @@ -52,7 +52,7 @@ main(int argc, char **argv) return system_error("Boot", "Failed"); if(!system_load(&u, argv[i++])) return system_error("Load", "Failed"); - u.dev[0x17] = i != argc; + u.dev[0x17] = argc - i; if(!uxn_eval(&u, PAGE_PROGRAM)) return u.dev[0x0f] & 0x7f; for(; i < argc; i++) {