mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
generic ui, add basic GLES support
This commit is contained in:
parent
7c6f79147b
commit
23e4719638
7 changed files with 54 additions and 26 deletions
|
@ -234,12 +234,11 @@ void plat_video_menu_enter(int is_rom_loaded)
|
|||
{
|
||||
if (SDL_MUSTLOCK(plat_sdl_screen))
|
||||
SDL_UnlockSurface(plat_sdl_screen);
|
||||
plat_sdl_change_video_mode(g_menuscreen_w, g_menuscreen_h, 1);
|
||||
resize_buffers();
|
||||
}
|
||||
|
||||
void plat_video_menu_begin(void)
|
||||
{
|
||||
plat_sdl_change_video_mode(g_menuscreen_w, g_menuscreen_h, 1);
|
||||
resize_buffers();
|
||||
if (plat_sdl_overlay || plat_sdl_gl_active) {
|
||||
g_menuscreen_pp = g_menuscreen_w;
|
||||
|
@ -318,10 +317,10 @@ void plat_early_init(void)
|
|||
static void plat_sdl_resize(int w, int h)
|
||||
{
|
||||
// take over new settings
|
||||
g_menuscreen_h = (plat_sdl_screen->h < 480 ? plat_sdl_screen->h : 480);
|
||||
if (!plat_sdl_overlay && !plat_sdl_gl_active)
|
||||
g_menuscreen_h = plat_sdl_screen->h;
|
||||
g_menuscreen_w = g_menuscreen_h * plat_sdl_screen->w/plat_sdl_screen->h;
|
||||
g_menuscreen_h = plat_sdl_screen->h;
|
||||
g_menuscreen_w = plat_sdl_screen->w;
|
||||
resize_buffers();
|
||||
rendstatus_old = -1;
|
||||
}
|
||||
|
||||
static void plat_sdl_quit(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue