From 43fc6d593f9dd2bc81ee866a94956ec39c58c3bc Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Thu, 8 Sep 2022 15:53:54 +0100 Subject: [PATCH] Fix incorrect return value in X11_GetPixelFormatFromVisualInfo --- src/video/x11/SDL_x11modes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11modes.c b/src/video/x11/SDL_x11modes.c index c8f6c54b8..8e3884715 100644 --- a/src/video/x11/SDL_x11modes.c +++ b/src/video/x11/SDL_x11modes.c @@ -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;