X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Flinux%2Fio.c;h=7fff211770f0310b249497c5430009ae20885bf3;hb=c7eb229a3cfc2848bcc3413185758039f30559aa;hp=63e3da8f13780cbd15bb90c6ec8506a607ade50f;hpb=d08e73261434dd37ec156d37094be98ceb6944c0;p=picodrive.git diff --git a/platform/linux/io.c b/platform/linux/io.c index 63e3da8..7fff211 100644 --- a/platform/linux/io.c +++ b/platform/linux/io.c @@ -252,8 +252,8 @@ static void xlib_init(void) static void realloc_screen(void) { int size = scr_w * scr_h * 2; - g_screen_width = scr_w; - g_screen_height = scr_h; + g_menuscreen_w = scr_w; + g_menuscreen_h = scr_h; g_screen_ptr = realloc(g_screen_ptr, size); g_menubg_ptr = realloc(g_menubg_ptr, size); memset(g_screen_ptr, 0, size); @@ -322,6 +322,8 @@ void plat_init(void) ret = vout_fbdev_init(&w, &h); if (ret != 0) exit(1); + g_menuscreen_w = w; + g_menuscreen_h = h; g_screen_width = w; g_menubg_ptr = realloc(g_menubg_ptr, w * g_screen_height * 2); PicoDraw2FB = g_menubg_ptr;