diff src/video/windows/SDL_windowsmodes.c @ 5152:be02be2ea897

Making the API simpler, removed support for palettized video modes and textures.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 01 Feb 2011 21:23:43 -0800
parents c2539ff054c8
children f908e06b3c96
line wrap: on
line diff
--- a/src/video/windows/SDL_windowsmodes.c	Tue Feb 01 20:50:04 2011 -0800
+++ b/src/video/windows/SDL_windowsmodes.c	Tue Feb 01 21:23:43 2011 -0800
@@ -131,6 +131,10 @@
             }
         }
     }
+    if (SDL_ISPIXELFORMAT_INDEXED(mode->format)) {
+        /* We don't support palettized modes now */
+        return SDL_FALSE;
+    }
     return SDL_TRUE;
 }