41 |
|
|
42 |
display = XOpenDisplay(NULL); |
display = XOpenDisplay(NULL); |
43 |
if (display == NULL) |
if (display == NULL) |
44 |
|
{ |
45 |
|
ERROR("Failed to open display\n"); |
46 |
return False; |
return False; |
47 |
|
} |
48 |
|
|
49 |
/* Check the screen supports 8-bit depth. */ |
/* Check the screen supports 8-bit depth. */ |
50 |
screen = DefaultScreenOfDisplay(display); |
screen = DefaultScreenOfDisplay(display); |
248 |
|
|
249 |
image = XCreateImage(display, visual, 1, ZPixmap, 0, |
image = XCreateImage(display, visual, 1, ZPixmap, 0, |
250 |
data, width, height, 8, scanline); |
data, width, height, 8, scanline); |
251 |
|
image->byte_order = MSBFirst; |
252 |
|
image->bitmap_bit_order = MSBFirst; |
253 |
|
XInitImage(image); |
254 |
|
|
255 |
XSetFunction(display, gc, GXcopy); |
XSetFunction(display, gc, GXcopy); |
256 |
XPutImage(display, bitmap, gc, image, 0, 0, 0, 0, width, height); |
XPutImage(display, bitmap, gc, image, 0, 0, 0, 0, width, height); |
257 |
XFree(image); |
XFree(image); |
525 |
|
|
526 |
if (glyph != NULL) |
if (glyph != NULL) |
527 |
{ |
{ |
528 |
ui_draw_glyph(mixmode, x, |
ui_draw_glyph(mixmode, x + (short)glyph->offset, |
529 |
y + (short)glyph->baseline, |
y + (short)glyph->baseline, |
530 |
glyph->width, glyph->height, |
glyph->width, glyph->height, |
531 |
glyph->pixmap, 0, 0, |
glyph->pixmap, 0, 0, |