From 2a929ff4d164b01e463edf71764f339d513169a4 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 27 Nov 2001 01:26:57 +0000 Subject: [PATCH] From: "Mattias Engdeg?rd" 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/x11/SDL_x11wm.c b/src/video/x11/SDL_x11wm.c index 4b5c01f3c..cc7bdea57 100644 --- a/src/video/x11/SDL_x11wm.c +++ b/src/video/x11/SDL_x11wm.c @@ -203,6 +203,8 @@ void X11_SetIcon(_THIS, SDL_Surface *icon, Uint8 *mask) ZPixmap, 0, sicon->pixels, sicon->w, sicon->h, 32, 0); + icon_image->byte_order = (SDL_BYTEORDER == SDL_BIG_ENDIAN) + ? MSBFirst : LSBFirst; icon_pixmap = XCreatePixmap(SDL_Display, SDL_Root, sicon->w, sicon->h, DefaultDepth(SDL_Display, SDL_Screen)); gc = XCreateGC(SDL_Display, icon_pixmap, 0, &GCvalues);