mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-01 14:31:54 +00:00
(XDK) Use g_extern.draw_menu instead of block_swap mechanism
This commit is contained in:
parent
1564d04a1e
commit
0b1bd6c276
@ -1155,7 +1155,6 @@ bool rmenu_iterate(void)
|
||||
|
||||
if(preinit)
|
||||
{
|
||||
device_ptr->block_swap = true;
|
||||
g_extern.console.rmenu.input_loop = INPUT_LOOP_MENU;
|
||||
g_extern.draw_menu = true;
|
||||
preinit = false;
|
||||
@ -1213,7 +1212,6 @@ deinit:
|
||||
SET_TIMER_EXPIRATION(0, 30);
|
||||
}
|
||||
|
||||
device_ptr->block_swap = false;
|
||||
g_extern.console.rmenu.state.ingame_menu.enable = false;
|
||||
g_extern.draw_menu = false;
|
||||
preinit = true;
|
||||
|
@ -612,7 +612,6 @@ static bool xdk_d3d_frame(void *data, const void *frame,
|
||||
#ifdef HAVE_FBO
|
||||
D3DSurface* pRenderTarget0;
|
||||
#endif
|
||||
bool menu_enabled = g_extern.draw_menu;
|
||||
bool fps_enable = g_extern.console.rmenu.state.msg_fps.enable;
|
||||
#ifdef _XBOX1
|
||||
unsigned flicker_filter = g_extern.console.screen.state.flicker_filter.value;
|
||||
@ -812,16 +811,15 @@ static bool xdk_d3d_frame(void *data, const void *frame,
|
||||
if (msg)
|
||||
d3d->font_ctx->render_msg_place(d3d, msg_width, msg_height, 0.0f, 0, msg);
|
||||
|
||||
if(!d3d->block_swap)
|
||||
gfx_ctx_xdk_swap_buffers();
|
||||
|
||||
#ifdef _XBOX360
|
||||
if(menu_enabled)
|
||||
if(g_extern.draw_menu)
|
||||
{
|
||||
app.Render();
|
||||
XuiTimersRun();
|
||||
}
|
||||
else
|
||||
#endif
|
||||
gfx_ctx_xdk_swap_buffers();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -53,7 +53,6 @@ typedef struct DrawVerticeFormats
|
||||
typedef struct xdk_d3d_video
|
||||
{
|
||||
const gfx_ctx_driver_t *ctx_driver;
|
||||
bool block_swap;
|
||||
#ifdef HAVE_FBO
|
||||
bool fbo_inited;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user