589 |
|
|
590 |
tdata = (owncolmap ? data : translate_image(width, height, data)); |
tdata = (owncolmap ? data : translate_image(width, height, data)); |
591 |
bitmap = XCreatePixmap(display, wnd, width, height, depth); |
bitmap = XCreatePixmap(display, wnd, width, height, depth); |
592 |
image = XCreateImage(display, visual, depth, ZPixmap, 0, tdata, width, |
image = XCreateImage(display, visual, depth, ZPixmap, 0, (char *)tdata, |
593 |
height, 8, 0); |
width, height, 8, 0); |
594 |
|
|
595 |
XPutImage(display, bitmap, gc, image, 0, 0, 0, 0, width, height); |
XPutImage(display, bitmap, gc, image, 0, 0, 0, 0, width, height); |
596 |
|
|
608 |
uint8 *tdata; |
uint8 *tdata; |
609 |
|
|
610 |
tdata = (owncolmap ? data : translate_image(width, height, data)); |
tdata = (owncolmap ? data : translate_image(width, height, data)); |
611 |
image = XCreateImage(display, visual, depth, ZPixmap, 0, tdata, width, |
image = XCreateImage(display, visual, depth, ZPixmap, 0, (char *)tdata, |
612 |
height, 8, 0); |
width, height, 8, 0); |
613 |
|
|
614 |
if (ownbackstore) |
if (ownbackstore) |
615 |
{ |
{ |
645 |
bitmap = XCreatePixmap(display, wnd, width, height, 1); |
bitmap = XCreatePixmap(display, wnd, width, height, 1); |
646 |
gc = XCreateGC(display, bitmap, 0, NULL); |
gc = XCreateGC(display, bitmap, 0, NULL); |
647 |
|
|
648 |
image = XCreateImage(display, visual, 1, ZPixmap, 0, data, width, |
image = XCreateImage(display, visual, 1, ZPixmap, 0, (char *)data, |
649 |
height, 8, scanline); |
width, height, 8, scanline); |
650 |
image->byte_order = MSBFirst; |
image->byte_order = MSBFirst; |
651 |
image->bitmap_bit_order = MSBFirst; |
image->bitmap_bit_order = MSBFirst; |
652 |
XInitImage(image); |
XInitImage(image); |
1157 |
if (data == NULL) |
if (data == NULL) |
1158 |
return; |
return; |
1159 |
|
|
1160 |
image = XCreateImage(display, visual, depth, ZPixmap, 0, data, cx, cy, |
image = XCreateImage(display, visual, depth, ZPixmap, 0, (char *)data, |
1161 |
BitmapPad(display), cx * bpp / 8); |
cx, cy, BitmapPad(display), cx * bpp / 8); |
1162 |
|
|
1163 |
if (ownbackstore) |
if (ownbackstore) |
1164 |
{ |
{ |