Simplify macro guards for HAVE_XRANDR

This commit is contained in:
Norbert Lange
2021-02-22 14:32:53 +01:00
parent 29eaf09be4
commit d4b293e969
7 changed files with 12 additions and 14 deletions

View File

@ -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>(