mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 15:48:05 -04:00
ODBETA: use 320x240 sdl surface when not hw scaling on 320x480 LCDs
This commit is contained in:
parent
c180662e07
commit
0e7c531169
2 changed files with 15 additions and 3 deletions
|
@ -331,9 +331,20 @@ static void plat_sdl_resize(int w, int h)
|
|||
{
|
||||
// take over new settings
|
||||
if (plat_sdl_screen->w != area.w || plat_sdl_screen->h != area.h) {
|
||||
g_menuscreen_h = plat_sdl_screen->h;
|
||||
g_menuscreen_w = plat_sdl_screen->w;
|
||||
resize_buffers();
|
||||
#if defined(__ODBETA__)
|
||||
if (currentConfig.vscaling != EOPT_SCALE_HW &&
|
||||
plat_sdl_screen->w == 320 &&
|
||||
plat_sdl_screen->h == 480) {
|
||||
g_menuscreen_h = 240;
|
||||
g_menuscreen_w = 320;
|
||||
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
g_menuscreen_h = plat_sdl_screen->h;
|
||||
g_menuscreen_w = plat_sdl_screen->w;
|
||||
}
|
||||
resize_buffers();
|
||||
rendstatus_old = -1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue