X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=libpicofe.git;a=blobdiff_plain;f=plat_sdl.c;h=37370bf0616157429bb74e1c32c618268c6cbeba;hp=f10427d3adc7d4c860a85bc2fc4ebb2ebc17c04d;hb=e288d77607c6c0f3eda615f9dcc2cc81f5396f65;hpb=63f173a2509a27f9ae156ad6ee798d76dec0ad6b diff --git a/plat_sdl.c b/plat_sdl.c index f10427d..37370bf 100644 --- a/plat_sdl.c +++ b/plat_sdl.c @@ -24,6 +24,7 @@ SDL_Surface *plat_sdl_screen; SDL_Overlay *plat_sdl_overlay; int plat_sdl_gl_active; +void (*plat_sdl_resize_cb)(int w, int h); void (*plat_sdl_quit_cb)(void); static char vid_drv_name[32]; @@ -117,6 +118,9 @@ int plat_sdl_change_video_mode(int w, int h, int force) } old_fullscreen = plat_target.vout_fullscreen; + if (plat_sdl_resize_cb != NULL) + plat_sdl_resize_cb(plat_sdl_screen->w, plat_sdl_screen->h); + return 0; }