diff src/video/cocoa/SDL_cocoamodes.m @ 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 de89a6f73c06
children ff2564c24045
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoamodes.m	Tue Feb 01 20:50:04 2011 -0800
+++ b/src/video/cocoa/SDL_cocoamodes.m	Tue Feb 01 21:23:43 2011 -0800
@@ -117,8 +117,8 @@
     mode->format = SDL_PIXELFORMAT_UNKNOWN;
     switch (bpp) {
     case 8:
-        mode->format = SDL_PIXELFORMAT_INDEX8;
-        break;
+        /* We don't support palettized modes now */
+        return SDL_FALSE;
     case 16:
         mode->format = SDL_PIXELFORMAT_ARGB1555;
         break;