Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11wm.c Mon Nov 26 22:22:20 2001 +0000 +++ b/src/video/x11/SDL_x11wm.c Tue Nov 27 01:26:57 2001 +0000 @@ -203,6 +203,8 @@ 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);