Backout commit fb91c22f656b
authorRyan C. Gordon <icculus@icculus.org>
Thu, 04 Jun 2015 02:12:06 -0400
changeset 97011c0e96906974
parent 9700 d8cc85e50561
child 9702 115bc7548a8d
Backout commit fb91c22f656b

This caused 8-bit modes to be chosen on older OS X releases.

Fixes Bugzilla #3000.
src/video/cocoa/SDL_cocoamodes.m
     1.1 --- a/src/video/cocoa/SDL_cocoamodes.m	Wed Jun 03 13:11:28 2015 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoamodes.m	Thu Jun 04 02:12:06 2015 -0400
     1.3 @@ -192,16 +192,9 @@
     1.4          mode->format = SDL_PIXELFORMAT_ARGB8888;
     1.5          break;
     1.6      case 8: /* We don't support palettized modes now */
     1.7 +    default: /* Totally unrecognizable bit depth. */
     1.8          SDL_free(data);
     1.9          return SDL_FALSE;
    1.10 -    default:
    1.11 -        /* Totally unrecognizable format. Maybe a new string reported by
    1.12 -           CGDisplayModeCopyPixelEncoding() in a future platform SDK.
    1.13 -           Just lie and call it 32-bit ARGB for now, so existing programs
    1.14 -           don't completely fail on new setups. (most apps don't care about
    1.15 -           the actual mode format anyhow.) */
    1.16 -        mode->format = SDL_PIXELFORMAT_ARGB8888;
    1.17 -        break;
    1.18      }
    1.19      mode->w = width;
    1.20      mode->h = height;