Browse code

Allow tiny sizes for the screen

Devine Lu Linvega authored on 26/04/2023 19:01:45
Showing 1 changed files
... ...
@@ -71,7 +71,7 @@ screen_resize(UxnScreen *p, Uint16 width, Uint16 height)
71 71
 {
72 72
 	Uint8 *bg, *fg;
73 73
 	Uint32 *pixels;
74
-	if(width < 0x20 || height < 0x20 || width >= 0x400 || height >= 0x400)
74
+	if(width < 0x8 || height < 0x8 || width >= 0x400 || height >= 0x400)
75 75
 		return;
76 76
 	bg = realloc(p->bg.pixels, width * height),
77 77
 	fg = realloc(p->fg.pixels, width * height);