527 |
case EnterNotify: |
case EnterNotify: |
528 |
if (grab_keyboard) |
if (grab_keyboard) |
529 |
XGrabKeyboard(display, wnd, True, |
XGrabKeyboard(display, wnd, True, |
530 |
GrabModeAsync, GrabModeAsync, |
GrabModeAsync, |
531 |
|
GrabModeAsync, |
532 |
CurrentTime); |
CurrentTime); |
533 |
break; |
break; |
534 |
|
|
607 |
|
|
608 |
tdata = (owncolmap ? data : translate_image(width, height, data)); |
tdata = (owncolmap ? data : translate_image(width, height, data)); |
609 |
bitmap = XCreatePixmap(display, wnd, width, height, depth); |
bitmap = XCreatePixmap(display, wnd, width, height, depth); |
610 |
image = XCreateImage(display, visual, depth, ZPixmap, 0, (char *)tdata, |
image = XCreateImage(display, visual, depth, ZPixmap, 0, |
611 |
width, height, 8, 0); |
(char *) tdata, width, height, 8, 0); |
612 |
|
|
613 |
XPutImage(display, bitmap, gc, image, 0, 0, 0, 0, width, height); |
XPutImage(display, bitmap, gc, image, 0, 0, 0, 0, width, height); |
614 |
|
|
626 |
uint8 *tdata; |
uint8 *tdata; |
627 |
|
|
628 |
tdata = (owncolmap ? data : translate_image(width, height, data)); |
tdata = (owncolmap ? data : translate_image(width, height, data)); |
629 |
image = XCreateImage(display, visual, depth, ZPixmap, 0, (char *)tdata, |
image = XCreateImage(display, visual, depth, ZPixmap, 0, |
630 |
width, height, 8, 0); |
(char *) tdata, width, height, 8, 0); |
631 |
|
|
632 |
if (ownbackstore) |
if (ownbackstore) |
633 |
{ |
{ |
663 |
bitmap = XCreatePixmap(display, wnd, width, height, 1); |
bitmap = XCreatePixmap(display, wnd, width, height, 1); |
664 |
gc = XCreateGC(display, bitmap, 0, NULL); |
gc = XCreateGC(display, bitmap, 0, NULL); |
665 |
|
|
666 |
image = XCreateImage(display, visual, 1, ZPixmap, 0, (char *)data, |
image = XCreateImage(display, visual, 1, ZPixmap, 0, (char *) data, |
667 |
width, height, 8, scanline); |
width, height, 8, scanline); |
668 |
image->byte_order = MSBFirst; |
image->byte_order = MSBFirst; |
669 |
image->bitmap_bit_order = MSBFirst; |
image->bitmap_bit_order = MSBFirst; |
1175 |
if (data == NULL) |
if (data == NULL) |
1176 |
return; |
return; |
1177 |
|
|
1178 |
image = XCreateImage(display, visual, depth, ZPixmap, 0, (char *)data, |
image = XCreateImage(display, visual, depth, ZPixmap, 0, |
1179 |
cx, cy, BitmapPad(display), cx * bpp / 8); |
(char *) data, cx, cy, BitmapPad(display), |
1180 |
|
cx * bpp / 8); |
1181 |
|
|
1182 |
if (ownbackstore) |
if (ownbackstore) |
1183 |
{ |
{ |