Fix incorrect return value in X11_GetPixelFormatFromVisualInfo

This commit is contained in:
Cameron Cawley 2022-09-08 15:53:54 +01:00 committed by Sam Lantinga
parent 202dfea502
commit 43fc6d593f
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ X11_GetPixelFormatFromVisualInfo(Display * display, XVisualInfo * vinfo)
if (vinfo->class == PseudoColor || vinfo->class == StaticColor) {
switch (vinfo->depth) {
case 8:
return SDL_PIXELTYPE_INDEX8;
return SDL_PIXELFORMAT_INDEX8;
case 4:
if (BitmapBitOrder(display) == LSBFirst) {
return SDL_PIXELFORMAT_INDEX4LSB;