mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-11 03:55:45 +00:00
(GLUI) Fix Savestate load/save and resume
This commit is contained in:
parent
5ece6d5ec0
commit
259d75fa6e
@ -107,6 +107,9 @@ static void glui_frame(void)
|
||||
if (!driver.menu || !gl)
|
||||
return;
|
||||
|
||||
if (g_extern.lifecycle_state & (1ULL << MODE_GAME))
|
||||
return;
|
||||
|
||||
line_height = g_settings.video.font_size * 4 / 3;
|
||||
glyph_width = line_height / 2;
|
||||
glui_margin = gl->win_width / 20 ;
|
||||
|
3
gfx/gl.c
3
gfx/gl.c
@ -1592,7 +1592,8 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei
|
||||
gl_set_prev_texture(gl, &tex_info);
|
||||
|
||||
#if defined(HAVE_MENU)
|
||||
if (g_extern.lifecycle_state & (1ULL << MODE_MENU) && driver.menu_ctx && driver.menu_ctx->frame)
|
||||
if ((g_extern.lifecycle_state & (1ULL << MODE_MENU))
|
||||
&& driver.menu_ctx && driver.menu_ctx->frame)
|
||||
driver.menu_ctx->frame();
|
||||
|
||||
if (gl->menu_texture_enable)
|
||||
|
Loading…
x
Reference in New Issue
Block a user