From 46d9b34ab4696f7668aab5afb2dfbe9de84bd3c8 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 27 Nov 2001 01:26:57 +0000 Subject: [PATCH] =?UTF-8?q?From:=20"Mattias=20Engdeg=EF=BF=BDrd"=20=20Subject:=20X11=20icon=20byte=20order=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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);