X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Flinux%2Fgp2x.c;h=c00671aa6ee2cded93f9a76719e8559ae1b4951c;hb=b3158e9837629be3d36176728848f10fba341fc9;hp=bcd7c7c3ea017af9a26f6cdc97b81ad83252fd1c;hpb=27701801c1b106f347ae81862f2426daf2e76fd8;p=picodrive.git diff --git a/platform/linux/gp2x.c b/platform/linux/gp2x.c index bcd7c7c..c00671a 100644 --- a/platform/linux/gp2x.c +++ b/platform/linux/gp2x.c @@ -25,6 +25,7 @@ static int current_bpp = 8; static int current_pal[256]; static const char *verstring = "PicoDrive " VERSION; static int scr_changed = 0, scr_w = SCREEN_WIDTH, scr_h = SCREEN_HEIGHT; +void *gp2x_screens[4]; // dummies int mix_32_to_16l_level; @@ -206,11 +207,15 @@ void finalize_image(guchar *pixels, gpointer data) static void realloc_screen(void) { void *old = g_screen_ptr; + int i; g_screen_width = scr_w; g_screen_height = scr_h; g_screen_ptr = calloc(g_screen_width * g_screen_height * 2, 1); free(old); scr_changed = 0; + + for (i = 0; i < 4; i++) + gp2x_screens[i] = g_screen_ptr; } /* gp2x/emu.c stuff, most to be rm'd */