changeset 2211:9462f4408ecb

Oops, meant PsuedoColor not TrueColor
author Bob Pendleton <bob@pendleton.com>
date Mon, 23 Jul 2007 16:55:38 +0000
parents 1de324fce4e8
children fdadda42d4d4
files src/video/x11/SDL_x11gamma.c src/video/x11/SDL_x11window.c
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/x11/SDL_x11gamma.c	Mon Jul 23 01:17:38 2007 +0000
+++ b/src/video/x11/SDL_x11gamma.c	Mon Jul 23 16:55:38 2007 +0000
@@ -23,11 +23,10 @@
 #include "../SDL_sysvideo.h"
 #include "SDL_x11video.h"
 
-
 int
 X11_SetDisplayGammaRamp(_THIS, Uint16 * ramp)
 {
-    return (-1);
+    return -1;
 }
 
 int
--- a/src/video/x11/SDL_x11window.c	Mon Jul 23 01:17:38 2007 +0000
+++ b/src/video/x11/SDL_x11window.c	Mon Jul 23 16:55:38 2007 +0000
@@ -181,7 +181,7 @@
     }
     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;