comparison src/video/x11/SDL_x11wm.c @ 246:7c09c9e3b0c7

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
author Sam Lantinga <slouken@libsdl.org>
date Tue, 27 Nov 2001 01:26:57 +0000
parents 3f09f52ac2cc
children e8157fcb3114
comparison
equal deleted inserted replaced
245:ab781a7dd82f 246:7c09c9e3b0c7
201 DefaultVisual(SDL_Display, SDL_Screen), 201 DefaultVisual(SDL_Display, SDL_Screen),
202 DefaultDepth(SDL_Display, SDL_Screen), 202 DefaultDepth(SDL_Display, SDL_Screen),
203 ZPixmap, 0, sicon->pixels, 203 ZPixmap, 0, sicon->pixels,
204 sicon->w, sicon->h, 204 sicon->w, sicon->h,
205 32, 0); 205 32, 0);
206 icon_image->byte_order = (SDL_BYTEORDER == SDL_BIG_ENDIAN)
207 ? MSBFirst : LSBFirst;
206 icon_pixmap = XCreatePixmap(SDL_Display, SDL_Root, sicon->w, sicon->h, 208 icon_pixmap = XCreatePixmap(SDL_Display, SDL_Root, sicon->w, sicon->h,
207 DefaultDepth(SDL_Display, SDL_Screen)); 209 DefaultDepth(SDL_Display, SDL_Screen));
208 gc = XCreateGC(SDL_Display, icon_pixmap, 0, &GCvalues); 210 gc = XCreateGC(SDL_Display, icon_pixmap, 0, &GCvalues);
209 XPutImage(SDL_Display, icon_pixmap, gc, icon_image, 211 XPutImage(SDL_Display, icon_pixmap, gc, icon_image,
210 0, 0, 0, 0, sicon->w, sicon->h); 212 0, 0, 0, 0, sicon->w, sicon->h);