mirror of https://github.com/encounter/SDL.git
Fix incorrect return value in X11_GetPixelFormatFromVisualInfo
This commit is contained in:
parent
202dfea502
commit
43fc6d593f
|
@ -127,7 +127,7 @@ X11_GetPixelFormatFromVisualInfo(Display * display, XVisualInfo * vinfo)
|
||||||
if (vinfo->class == PseudoColor || vinfo->class == StaticColor) {
|
if (vinfo->class == PseudoColor || vinfo->class == StaticColor) {
|
||||||
switch (vinfo->depth) {
|
switch (vinfo->depth) {
|
||||||
case 8:
|
case 8:
|
||||||
return SDL_PIXELTYPE_INDEX8;
|
return SDL_PIXELFORMAT_INDEX8;
|
||||||
case 4:
|
case 4:
|
||||||
if (BitmapBitOrder(display) == LSBFirst) {
|
if (BitmapBitOrder(display) == LSBFirst) {
|
||||||
return SDL_PIXELFORMAT_INDEX4LSB;
|
return SDL_PIXELFORMAT_INDEX4LSB;
|
||||||
|
|
Loading…
Reference in New Issue