mirror of
https://github.com/libretro/RetroArch
synced 2025-03-21 13:20:52 +00:00
Fix some Xbox unresolved symbol errors
This commit is contained in:
parent
557c6c1d19
commit
3ab07fc43f
@ -125,24 +125,36 @@ static void gfx_ctx_d3d_show_mouse(void *data, bool state)
|
||||
{
|
||||
(void)data;
|
||||
|
||||
#ifndef _XBOX
|
||||
win32_show_cursor(state);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void gfx_ctx_d3d_check_window(void *data, bool *quit,
|
||||
bool *resize, unsigned *width,
|
||||
unsigned *height, bool is_shutdown)
|
||||
{
|
||||
#ifndef _XBOX
|
||||
win32_check_window(quit, resize, width, height);
|
||||
#endif
|
||||
}
|
||||
|
||||
static bool gfx_ctx_d3d_has_focus(void *data)
|
||||
{
|
||||
#ifdef _XBOX
|
||||
return true;
|
||||
#else
|
||||
return win32_has_focus();
|
||||
#endif
|
||||
}
|
||||
|
||||
static bool gfx_ctx_d3d_suppress_screensaver(void *data, bool enable)
|
||||
{
|
||||
#ifdef _XBOX
|
||||
return true;
|
||||
#else
|
||||
return win32_suppress_screensaver(data, enable);
|
||||
#endif
|
||||
}
|
||||
|
||||
static bool gfx_ctx_d3d_has_windowed(void *data)
|
||||
@ -174,7 +186,9 @@ static bool gfx_ctx_d3d_bind_api(void *data,
|
||||
|
||||
static void *gfx_ctx_d3d_init(video_frame_info_t *video_info, void *video_driver)
|
||||
{
|
||||
#ifndef _XBOX
|
||||
win32_monitor_init();
|
||||
#endif
|
||||
|
||||
return video_driver;
|
||||
}
|
||||
@ -221,7 +235,9 @@ static bool gfx_ctx_d3d_set_video_mode(void *data,
|
||||
unsigned width, unsigned height,
|
||||
bool fullscreen)
|
||||
{
|
||||
#ifndef _XBOX
|
||||
win32_show_cursor(!fullscreen);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -334,7 +350,11 @@ static void gfx_ctx_d3d_swap_interval(void *data, unsigned interval)
|
||||
static bool gfx_ctx_d3d_get_metrics(void *data,
|
||||
enum display_metric_types type, float *value)
|
||||
{
|
||||
#ifdef _XBOX
|
||||
return false;
|
||||
#else
|
||||
return win32_get_metrics(data, type, value);
|
||||
#endif
|
||||
}
|
||||
|
||||
static uint32_t gfx_ctx_d3d_get_flags(void *data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user