Skip to content

Commit

Permalink
From: "Mattias Engdeg?rd" <f91-men@nada.kth.se>
Browse files Browse the repository at this point in the history
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
  • Loading branch information
slouken committed Nov 27, 2001
1 parent 8c1106b commit 2a929ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/x11/SDL_x11wm.c
Expand Up @@ -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);
Expand Down

0 comments on commit 2a929ff

Please sign in to comment.