mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-04 22:47:44 -04:00
sdl: add resize callback
This commit is contained in:
parent
63f173a250
commit
e288d77607
2 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue