mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 23:08:47 +00:00
UICommon: Avoid including Xrandr.h
Xlib has really terrible headers that declare non-namespaced macros and typedefs for common words. Just wasted 10 minutes trying to figure out why a unit test failed to build before I remembered it was Xrandr.h conflicting with our enum class members again. To fix the issue, this removes the Display* parameter from the EnableScreensaver function (which was unused) so we don't have to include Xrandr.h anymore.
This commit is contained in:
parent
62269572e4
commit
2f22c76db1
7 changed files with 8 additions and 16 deletions
|
@ -708,8 +708,7 @@ WXLRESULT CFrame::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
|
|||
void CFrame::EnableScreenSaver(bool enable)
|
||||
{
|
||||
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
||||
UICommon::EnableScreenSaver(X11Utils::XDisplayFromHandle(GetHandle()),
|
||||
X11Utils::XWindowFromHandle(GetHandle()), enable);
|
||||
UICommon::EnableScreenSaver(X11Utils::XWindowFromHandle(GetHandle()), enable);
|
||||
#else
|
||||
UICommon::EnableScreenSaver(enable);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue