From a0931d6058625d5e9b07f6b0af8eba8d0e17494f Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Mon, 22 Oct 2018 15:08:11 -0500 Subject: [PATCH] More XRandR not to compile if not X11. --- gtk/src/gtk_preferences.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/src/gtk_preferences.cpp b/gtk/src/gtk_preferences.cpp index 72839bfb..01951ce6 100644 --- a/gtk/src/gtk_preferences.cpp +++ b/gtk/src/gtk_preferences.cpp @@ -1093,6 +1093,7 @@ Snes9xPreferences::show (void) guint source_id = -1; #endif +#ifdef GDK_WINDOWING_X11 if (config->allow_xrandr) { char size_string[256]; @@ -1124,6 +1125,7 @@ Snes9xPreferences::show (void) config->xrr_index = 0; } else +#endif { gtk_widget_hide (get_widget ("resolution_box")); }