Backout commit fb91c22f656b
This caused 8-bit modes to be chosen on older OS X releases. Fixes Bugzilla #3000.
This commit is contained in:
parent
91ec2b0c3b
commit
6c5bf90246
1 changed files with 1 additions and 8 deletions
|
@ -192,16 +192,9 @@ GetDisplayMode(_THIS, const void *moderef, CVDisplayLinkRef link, SDL_DisplayMod
|
||||||
mode->format = SDL_PIXELFORMAT_ARGB8888;
|
mode->format = SDL_PIXELFORMAT_ARGB8888;
|
||||||
break;
|
break;
|
||||||
case 8: /* We don't support palettized modes now */
|
case 8: /* We don't support palettized modes now */
|
||||||
|
default: /* Totally unrecognizable bit depth. */
|
||||||
SDL_free(data);
|
SDL_free(data);
|
||||||
return SDL_FALSE;
|
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->w = width;
|
||||||
mode->h = height;
|
mode->h = height;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue