Get rid of d3d9_suppress_screensaver in d3d9_common.c

This commit is contained in:
libretroadmin 2022-05-17 14:21:22 +02:00
parent a396cd872c
commit efe6d14d37
4 changed files with 13 additions and 13 deletions

View File

@ -1067,15 +1067,6 @@ void d3d9_free_overlay(d3d9_video_t *d3d, overlay_t *overlay)
}
#endif
bool d3d9_suppress_screensaver(void *data, bool enable)
{
#ifdef _XBOX
return true;
#else
return win32_suppress_screensaver(data, enable);
#endif
}
void d3d9_set_aspect_ratio(void *data, unsigned aspect_ratio_idx)
{
d3d9_video_t *d3d = (d3d9_video_t*)data;

View File

@ -255,8 +255,6 @@ bool d3d9_read_viewport(void *data, uint8_t *buffer, bool is_idle);
bool d3d9_has_windowed(void *data);
bool d3d9_suppress_screensaver(void *data, bool enable);
bool d3d9_process_shader(d3d9_video_t *d3d);
uintptr_t d3d9_load_texture(void *video_data, void *data,

View File

@ -1997,7 +1997,7 @@ video_driver_t video_d3d9_cg = {
d3d9_cg_set_nonblock_state,
d3d9_cg_alive,
NULL, /* focus */
d3d9_suppress_screensaver,
win32_suppress_screensaver,
d3d9_has_windowed,
d3d9_cg_set_shader,
d3d9_cg_free,

View File

@ -1581,13 +1581,24 @@ static void d3d9_hlsl_set_nonblock_state(void *data, bool state,
#endif
}
#ifdef _XBOX
static bool d3d9_hlsl_suppress_screensaver(void *data, bool enable)
{
return true;
}
#endif
video_driver_t video_d3d9_hlsl = {
d3d9_hlsl_init,
d3d9_hlsl_frame,
d3d9_hlsl_set_nonblock_state,
d3d9_hlsl_alive,
NULL, /* focus */
d3d9_suppress_screensaver,
#ifdef _XBOX
d3d9_hlsl_suppress_screensaver,
#else
win32_suppress_screensaver,
#endif
d3d9_has_windowed,
d3d9_hlsl_set_shader,
d3d9_hlsl_free,