uxn

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

commit 0da70d6bd123ef415c3c5b73a7c57e2bc011678b
parent ebf31ecb03693eb61d11201647912bf6d578d16a
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date:   Wed, 26 Apr 2023 12:01:45 -0700

Allow tiny sizes for the screen

Diffstat:
Msrc/devices/screen.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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);