Updated the fallback icon for FTE
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5392 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
8f6bb42a6a
commit
e64409274a
4 changed files with 639 additions and 593 deletions
Binary file not shown.
Before Width: | Height: | Size: 160 KiB After Width: | Height: | Size: 182 KiB |
File diff suppressed because it is too large
Load diff
Binary file not shown.
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
|
@ -3517,8 +3517,10 @@ static void X_StoreIcon(Window wnd)
|
||||||
unsigned long data[64*64+2];
|
unsigned long data[64*64+2];
|
||||||
data[0] = icon.width;
|
data[0] = icon.width;
|
||||||
data[1] = icon.height;
|
data[1] = icon.height;
|
||||||
|
|
||||||
|
/* GIMP exports dumps as RGBA only, so we have to convert them too - eukara */
|
||||||
for (i = 0; i < data[0]*data[1]; i++)
|
for (i = 0; i < data[0]*data[1]; i++)
|
||||||
data[i+2] = ((const unsigned int*)icon.pixel_data)[i];
|
data[i+2] = (icon.pixel_data[i*4+3]<<24) | (icon.pixel_data[i*4+0]<<16) | (icon.pixel_data[i*4+1]<<8) | (icon.pixel_data[i*4+2]<<0);
|
||||||
|
|
||||||
x11.pXChangeProperty(vid_dpy, wnd, propname, proptype, 32, PropModeReplace, (void*)data, data[0]*data[1]+2);
|
x11.pXChangeProperty(vid_dpy, wnd, propname, proptype, 32, PropModeReplace, (void*)data, data[0]*data[1]+2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue