diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index cdff0b0e78..27dd1d1656 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -890,7 +890,7 @@ static bool d3d_focus(void *data) static bool d3d_suppress_screensaver(void *data, bool enable) { bool enabled = enable; - return gfx_ctl(GFX_CTL_SUPPRESS_SCREENSAVER, &enabled); + return gfx_ctx_ctl(GFX_CTL_SUPPRESS_SCREENSAVER, &enabled); } static bool d3d_has_windowed(void *data)