src/video/x11/SDL_x11modes.c
changeset 5149 be02be2ea897
parent 4618 844b5ef4b149
child 5182 073b86030262
--- a/src/video/x11/SDL_x11modes.c	Tue Feb 01 20:50:04 2011 -0800
+++ b/src/video/x11/SDL_x11modes.c	Tue Feb 01 21:23:43 2011 -0800
@@ -134,6 +134,10 @@
         }
 
         mode.format = X11_GetPixelFormatFromVisualInfo(data->display, &vinfo);
+        if (SDL_ISPIXELFORMAT_INDEXED(mode.format)) {
+            /* We don't support palettized modes now */
+            continue;
+        }
         mode.w = DisplayWidth(data->display, screen);
         mode.h = DisplayHeight(data->display, screen);
         mode.refresh_rate = 0;