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); |
521 |
|
|
522 |
if (glyph != NULL) |
if (glyph != NULL) |
523 |
{ |
{ |
524 |
ui_draw_glyph(mixmode, x, |
ui_draw_glyph(mixmode, x + (short)glyph->offset, |
525 |
y + (short)glyph->baseline, |
y + (short)glyph->baseline, |
526 |
glyph->width, glyph->height, |
glyph->width, glyph->height, |
527 |
glyph->pixmap, 0, 0, |
glyph->pixmap, 0, 0, |