src/video/x11/SDL_x11modes.c
changeset 7431 0fc94f315dac
parent 7361 9b4430c49235
child 7485 6ffa71faa50b
--- a/src/video/x11/SDL_x11modes.c	Fri Jul 12 23:45:12 2013 -0700
+++ b/src/video/x11/SDL_x11modes.c	Sat Jul 13 11:06:34 2013 +0800
@@ -704,9 +704,9 @@
             mode.driverdata = modedata;
             SDL_AddDisplayMode(sdl_display, &mode);
         }
-        else
+        else if (!data->use_xrandr)
         {
-            /* Add the current mode of each monitor otherwise */
+            /* Add the current mode of each monitor otherwise if we can't get them from xrandr */
             mode.w = data->xinerama_info.width;
             mode.h = data->xinerama_info.height;
             mode.refresh_rate = 0;