Buildfix for X11 - rename win32_suppress_screensaver to

win32_suspend_screensaver
This commit is contained in:
libretroadmin 2023-06-20 11:56:25 +02:00
parent 5e2bfcbe09
commit c0d3b8f14b
8 changed files with 12 additions and 18 deletions

View File

@ -2215,7 +2215,7 @@ bool win32_has_focus(void *data)
HWND win32_get_window(void) { return main_window.hwnd; }
bool win32_suppress_screensaver(void *data, bool enable)
bool win32_suspend_screensaver(void *data, bool enable)
{
if (enable)
{

View File

@ -111,7 +111,7 @@ bool win32_window_create(void *data, unsigned style,
RECT *mon_rect, unsigned width,
unsigned height, bool fullscreen);
bool win32_suppress_screensaver(void *data, bool enable);
bool win32_suspend_screensaver(void *data, bool enable);
bool win32_get_metrics(void *data,
enum display_metric_types type, float *value);

View File

@ -30,7 +30,7 @@ extern unsigned g_x11_screen;
void x11_show_mouse(void *data, bool state);
void x11_set_net_wm_fullscreen(Display *dpy, Window win);
void x11_suspend_screensaver(void *data, bool enable);
bool x11_suspend_screensaver(void *data, bool enable);
void x11_move_window(Display *dpy, Window win,
int x, int y, unsigned width, unsigned height);

View File

@ -1454,10 +1454,7 @@ static bool d3d8_alive(void *data)
}
#ifdef _XBOX
static bool d3d8_suppress_screensaver(void *data, bool enable)
{
return true;
}
static bool d3d8_suspend_screensaver(void *data, bool enable) { return true; }
#endif
static void d3d8_set_aspect_ratio(void *data, unsigned aspect_ratio_idx)
@ -2233,9 +2230,9 @@ video_driver_t video_d3d8 = {
d3d8_alive,
NULL, /* focus */
#ifdef _XBOX
d3d8_suppress_screensaver,
d3d8_suspend_screensaver,
#else
win32_suppress_screensaver,
win32_suspend_screensaver,
#endif
d3d8_has_windowed,
d3d8_set_shader,

View File

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

View File

@ -1883,10 +1883,7 @@ static void d3d9_hlsl_set_nonblock_state(void *data, bool state,
}
#ifdef _XBOX
static bool d3d9_hlsl_suppress_screensaver(void *data, bool enable)
{
return true;
}
static bool d3d9_hlsl_suspend_screensaver(void *data, bool enable) { return true; }
#endif
video_driver_t video_d3d9_hlsl = {
@ -1896,9 +1893,9 @@ video_driver_t video_d3d9_hlsl = {
d3d9_hlsl_alive,
NULL, /* focus */
#ifdef _XBOX
d3d9_hlsl_suppress_screensaver,
d3d9_hlsl_suspend_screensaver,
#else
win32_suppress_screensaver,
win32_suspend_screensaver,
#endif
d3d9_has_windowed,
d3d9_hlsl_set_shader,

View File

@ -316,7 +316,7 @@ const gfx_ctx_driver_t gfx_ctx_w_vk = {
gfx_ctx_w_vk_check_window,
gfx_ctx_w_vk_set_resize,
win32_has_focus,
win32_suppress_screensaver,
win32_suspend_screensaver,
true, /* has_windowed */
gfx_ctx_w_vk_swap_buffers,
gfx_ctx_w_vk_input_driver,

View File

@ -798,7 +798,7 @@ const gfx_ctx_driver_t gfx_ctx_wgl = {
win32_check_window,
gfx_ctx_wgl_set_resize,
win32_has_focus,
win32_suppress_screensaver,
win32_suspend_screensaver,
true, /* has_windowed */
gfx_ctx_wgl_swap_buffers,
gfx_ctx_wgl_input_driver,