mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Simplify macro guards for HAVE_XRANDR
This commit is contained in:
parent
29eaf09be4
commit
d4b293e969
7 changed files with 12 additions and 14 deletions
|
@ -119,7 +119,7 @@
|
|||
#include "VideoCommon/NetPlayChatUI.h"
|
||||
#include "VideoCommon/VideoConfig.h"
|
||||
|
||||
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
||||
#ifdef HAVE_XRANDR
|
||||
#include "UICommon/X11Utils.h"
|
||||
// This #define within X11/X.h conflicts with our WiimoteSource enum.
|
||||
#undef None
|
||||
|
@ -1172,7 +1172,7 @@ void MainWindow::ShowGraphicsWindow()
|
|||
{
|
||||
if (!m_graphics_window)
|
||||
{
|
||||
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
||||
#ifdef HAVE_XRANDR
|
||||
if (GetWindowSystemType() == WindowSystemType::X11)
|
||||
{
|
||||
m_xrr_config = std::make_unique<X11Utils::XRRConfiguration>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue