Skip to content
Permalink
Browse files
Backout commit 83034612a883
This caused 8-bit modes to be chosen on older OS X releases.

Fixes Bugzilla #3000.
  • Loading branch information
icculus committed Jun 4, 2015
1 parent e8b376c commit ba1263cd1d23337ad2c9ca010be9450f9eb7ad88
Showing with 1 addition and 8 deletions.
  1. +1 −8 src/video/cocoa/SDL_cocoamodes.m
@@ -192,16 +192,9 @@
mode->format = SDL_PIXELFORMAT_ARGB8888;
break;
case 8: /* We don't support palettized modes now */
default: /* Totally unrecognizable bit depth. */
SDL_free(data);
return SDL_FALSE;
default:
/* Totally unrecognizable format. Maybe a new string reported by
CGDisplayModeCopyPixelEncoding() in a future platform SDK.
Just lie and call it 32-bit ARGB for now, so existing programs
don't completely fail on new setups. (most apps don't care about
the actual mode format anyhow.) */
mode->format = SDL_PIXELFORMAT_ARGB8888;
break;
}
mode->w = width;
mode->h = height;

0 comments on commit ba1263c

Please sign in to comment.