mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Fixed conversion for 32bit images
This commit is contained in:
parent
952b1338c9
commit
3ea8f1d1f8
@ -138,9 +138,13 @@ Pixmap create_xpixmap(Fl_Image* img, XImage*& xim, Pixmap pix, int wp_w, int wp_
|
||||
*destptr++ = (tmp & 0xff000000) >> 24;
|
||||
*destptr++ = (tmp & 0xff0000) >> 16;
|
||||
*destptr++ = (tmp & 0xff00) >> 8;
|
||||
|
||||
// FIXME: check this somehow !
|
||||
if(id == 4)
|
||||
*destptr++ = (tmp & 0xff);
|
||||
} else {
|
||||
// little endian
|
||||
if(id == 4)
|
||||
*destptr++ = (tmp & 0xff);
|
||||
*destptr++ = (tmp & 0xff00) >> 8;
|
||||
*destptr++ = (tmp & 0xff0000) >> 16;
|
||||
|
Loading…
Reference in New Issue
Block a user