(360) Implement swap callback

This commit is contained in:
TwinAphex51224 2012-02-13 22:53:07 +01:00
parent 1b28ea4945
commit 69a5faaaab
2 changed files with 10 additions and 3 deletions

View File

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

View File

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