diff --git a/gfx/drivers_context/d3d_ctx.cpp b/gfx/drivers_context/d3d_ctx.cpp index 3c7c3e90b0..c7916b59d8 100644 --- a/gfx/drivers_context/d3d_ctx.cpp +++ b/gfx/drivers_context/d3d_ctx.cpp @@ -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)