More XRandR not to compile if not X11.

This commit is contained in:
Brandon Wright 2018-10-22 15:08:11 -05:00
parent 1b6690b1fe
commit a0931d6058

View File

@ -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"));
}