diff --git a/src/video/x11/SDL_x11gamma.c b/src/video/x11/SDL_x11gamma.c index b1825422a..6db09a552 100644 --- a/src/video/x11/SDL_x11gamma.c +++ b/src/video/x11/SDL_x11gamma.c @@ -23,11 +23,10 @@ #include "../SDL_sysvideo.h" #include "SDL_x11video.h" - int X11_SetDisplayGammaRamp(_THIS, Uint16 * ramp) { - return (-1); + return -1; } int diff --git a/src/video/x11/SDL_x11window.c b/src/video/x11/SDL_x11window.c index 3b0b205d6..0f9e84814 100644 --- a/src/video/x11/SDL_x11window.c +++ b/src/video/x11/SDL_x11window.c @@ -181,7 +181,7 @@ X11_CreateWindow(_THIS, SDL_Window * window) } xattr.background_pixel = 0; xattr.border_pixel = 0; - if (visual->class == DirectColor || visual->class == TrueColor) { + if (visual->class == DirectColor || visual->class == PseudoColor) { int nmaps; XStandardColormap *stdmaps; int i;