mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
ui, fix for changing SDL emulation display
This commit is contained in:
parent
57c5a5e505
commit
0c948e2c82
1 changed files with 3 additions and 1 deletions
|
@ -227,6 +227,9 @@ void plat_video_menu_leave(void)
|
||||||
|
|
||||||
void plat_video_loop_prepare(void)
|
void plat_video_loop_prepare(void)
|
||||||
{
|
{
|
||||||
|
// take over any new vout settings XXX ask plat_sdl for scaling instead!
|
||||||
|
plat_sdl_change_video_mode(g_menuscreen_w, g_menuscreen_h, 0);
|
||||||
|
// switch over to scaled output if available
|
||||||
if (plat_sdl_overlay != NULL || plat_sdl_gl_active) {
|
if (plat_sdl_overlay != NULL || plat_sdl_gl_active) {
|
||||||
g_screen_width = 320;
|
g_screen_width = 320;
|
||||||
g_screen_height = 240;
|
g_screen_height = 240;
|
||||||
|
@ -238,7 +241,6 @@ void plat_video_loop_prepare(void)
|
||||||
g_screen_width = g_menuscreen_w;
|
g_screen_width = g_menuscreen_w;
|
||||||
g_screen_height = g_menuscreen_h;
|
g_screen_height = g_menuscreen_h;
|
||||||
g_screen_ppitch = g_menuscreen_pp;
|
g_screen_ppitch = g_menuscreen_pp;
|
||||||
plat_sdl_change_video_mode(g_screen_width, g_screen_height, 0);
|
|
||||||
if (SDL_MUSTLOCK(plat_sdl_screen))
|
if (SDL_MUSTLOCK(plat_sdl_screen))
|
||||||
SDL_LockSurface(plat_sdl_screen);
|
SDL_LockSurface(plat_sdl_screen);
|
||||||
g_screen_ptr = plat_sdl_screen->pixels;
|
g_screen_ptr = plat_sdl_screen->pixels;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue