From: "Mattias Engdeg�rd" <f91-men@nada.kth.se>
authorSam Lantinga <slouken@libsdl.org>
Tue, 27 Nov 2001 01:26:57 +0000
changeset 2467c09c9e3b0c7
parent 245 ab781a7dd82f
child 247 b0f09f86378d
From: "Mattias Engdeg�rd" <f91-men@nada.kth.se>
Subject: X11 icon byte order bug

This fixes a small byte order bug when running X on a remote host
with a >8bpp screen.

Cheers,
Mattias
src/video/x11/SDL_x11wm.c
     1.1 --- a/src/video/x11/SDL_x11wm.c	Mon Nov 26 22:22:20 2001 +0000
     1.2 +++ b/src/video/x11/SDL_x11wm.c	Tue Nov 27 01:26:57 2001 +0000
     1.3 @@ -203,6 +203,8 @@
     1.4  				  ZPixmap, 0, sicon->pixels,
     1.5  				  sicon->w, sicon->h,
     1.6  				  32, 0);
     1.7 +	icon_image->byte_order = (SDL_BYTEORDER == SDL_BIG_ENDIAN)
     1.8 +		                 ? MSBFirst : LSBFirst;
     1.9  	icon_pixmap = XCreatePixmap(SDL_Display, SDL_Root, sicon->w, sicon->h,
    1.10  				    DefaultDepth(SDL_Display, SDL_Screen));
    1.11  	gc = XCreateGC(SDL_Display, icon_pixmap, 0, &GCvalues);