(GLUI) Fix Savestate load/save and resume

This commit is contained in:
twinaphex 2014-09-14 05:57:53 +02:00
parent 5ece6d5ec0
commit 259d75fa6e
2 changed files with 5 additions and 1 deletions

View File

@ -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 ;

View File

@ -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)