mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-20 18:02:12 +00:00
(360) implement set swap block callback
This commit is contained in:
parent
55a400f521
commit
1b28ea4945
@ -276,7 +276,7 @@ void menu_loop(void)
|
||||
xdk360_video_t *vid = (xdk360_video_t*)g_d3d;
|
||||
|
||||
if(g_console.ingame_menu_enable)
|
||||
xdk360_block_swap();
|
||||
video_xdk360.set_swap_block_state(NULL, true);
|
||||
|
||||
do
|
||||
{
|
||||
@ -310,6 +310,7 @@ void menu_loop(void)
|
||||
}while(g_console.menu_enable);
|
||||
|
||||
if(g_console.ingame_menu_enable)
|
||||
xdk360_unblock_swap();
|
||||
video_xdk360.set_swap_block_state(NULL, false);
|
||||
|
||||
g_console.ingame_menu_enable = false;
|
||||
}
|
||||
|
@ -297,18 +297,16 @@ static bool xdk360_gfx_frame(void *data, const void *frame,
|
||||
return true;
|
||||
}
|
||||
|
||||
void xdk360_block_swap (void)
|
||||
static void xdk360_set_swap_block_swap (void * data, bool toggle)
|
||||
{
|
||||
(void)data;
|
||||
xdk360_video_t *vid = (xdk360_video_t*)g_d3d;
|
||||
vid->block_swap = true;
|
||||
SSNES_LOG("Swap is set to blocked.\n");
|
||||
}
|
||||
vid->block_swap = toggle;
|
||||
|
||||
void xdk360_unblock_swap (void)
|
||||
{
|
||||
xdk360_video_t * vid = (xdk360_video_t*)g_d3d;
|
||||
vid->block_swap = false;
|
||||
SSNES_LOG("Swap is set to non-blocked.\n");
|
||||
if(toggle)
|
||||
SSNES_LOG("Swap is set to blocked.\n");
|
||||
else
|
||||
SSNES_LOG("Swap is set to non-blocked.\n");
|
||||
}
|
||||
|
||||
static void xdk360_gfx_set_nonblock_state(void *data, bool state)
|
||||
@ -381,6 +379,7 @@ const video_driver_t video_xdk360 = {
|
||||
xdk360_gfx_focus,
|
||||
NULL,
|
||||
xdk360_gfx_free,
|
||||
"xdk360"
|
||||
"xdk360",
|
||||
xdk360_set_swap_block_swap
|
||||
};
|
||||
|
||||
|
@ -57,8 +57,6 @@ typedef struct xdk360_video
|
||||
void xdk360_video_init(void);
|
||||
void xdk360_video_deinit(void);
|
||||
void xdk360_video_set_vsync(bool vsync);
|
||||
void xdk360_block_swap (void);
|
||||
void xdk360_unblock_swap (void);
|
||||
|
||||
extern Console g_screen_console;
|
||||
extern unsigned g_frame_count;
|
||||
|
Loading…
x
Reference in New Issue
Block a user