mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 18:35:22 +00:00
(360) Implement swap callback
This commit is contained in:
parent
1b28ea4945
commit
69a5faaaab
@ -305,8 +305,7 @@ void menu_loop(void)
|
||||
hr = app.Render(); /* Render XUI */
|
||||
hr = XuiTimersRun(); /* Update XUI timers */
|
||||
|
||||
/* Present the frame */
|
||||
vid->xdk360_render_device->Present(NULL, NULL, NULL, NULL);
|
||||
video_xdk360.swap(NULL);
|
||||
}while(g_console.menu_enable);
|
||||
|
||||
if(g_console.ingame_menu_enable)
|
||||
|
@ -309,6 +309,13 @@ static void xdk360_set_swap_block_swap (void * data, bool toggle)
|
||||
SSNES_LOG("Swap is set to non-blocked.\n");
|
||||
}
|
||||
|
||||
static void xdk360_swap (void * data)
|
||||
{
|
||||
(void)data;
|
||||
xdk360_video_t *vid = (xdk360_video_t*)g_d3d;
|
||||
vid->xdk360_render_device->Present(NULL, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
static void xdk360_gfx_set_nonblock_state(void *data, bool state)
|
||||
{
|
||||
xdk360_video_t *vid = (xdk360_video_t*)data;
|
||||
@ -380,6 +387,7 @@ const video_driver_t video_xdk360 = {
|
||||
NULL,
|
||||
xdk360_gfx_free,
|
||||
"xdk360",
|
||||
xdk360_set_swap_block_swap
|
||||
xdk360_set_swap_block_swap,
|
||||
xdk360_swap
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user