Housekeeping
This commit is contained in:
parent
29f057ba44
commit
855b63b1ef
|
@ -71,7 +71,7 @@ screen_resize(UxnScreen *p, Uint16 width, Uint16 height)
|
||||||
{
|
{
|
||||||
Uint8 *bg, *fg;
|
Uint8 *bg, *fg;
|
||||||
Uint32 *pixels;
|
Uint32 *pixels;
|
||||||
if(width < 0x20 || height < 0x20 || width >= 0x400 || height >= 0x400)
|
if(width < 0x8 || height < 0x8 || width >= 0x400 || height >= 0x400)
|
||||||
return;
|
return;
|
||||||
bg = realloc(p->bg.pixels, width * height),
|
bg = realloc(p->bg.pixels, width * height),
|
||||||
fg = realloc(p->fg.pixels, width * height);
|
fg = realloc(p->fg.pixels, width * height);
|
||||||
|
|
|
@ -52,7 +52,7 @@ main(int argc, char **argv)
|
||||||
return system_error("Boot", "Failed");
|
return system_error("Boot", "Failed");
|
||||||
if(!system_load(&u, argv[i++]))
|
if(!system_load(&u, argv[i++]))
|
||||||
return system_error("Load", "Failed");
|
return system_error("Load", "Failed");
|
||||||
u.dev[0x17] = i != argc;
|
u.dev[0x17] = argc - i;
|
||||||
if(!uxn_eval(&u, PAGE_PROGRAM))
|
if(!uxn_eval(&u, PAGE_PROGRAM))
|
||||||
return u.dev[0x0f] & 0x7f;
|
return u.dev[0x0f] & 0x7f;
|
||||||
for(; i < argc; i++) {
|
for(; i < argc; i++) {
|
||||||
|
|
Loading…
Reference in New Issue