mirror of
https://github.com/joel16/SDL2.git
synced 2025-01-05 18:22:09 +00:00
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 --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40247
This commit is contained in:
parent
90a40eae2b
commit
0ed6cab836
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user