85 |
} |
} |
86 |
|
|
87 |
/* Store a glyph in the font cache */ |
/* Store a glyph in the font cache */ |
88 |
void cache_put_font(uint8 font, uint32 character, uint16 baseline, |
void cache_put_font(uint8 font, uint16 character, uint16 offset, |
89 |
uint16 width, uint16 height, HGLYPH pixmap) |
uint16 baseline, uint16 width, uint16 height, HGLYPH pixmap) |
90 |
{ |
{ |
91 |
FONTGLYPH *glyph; |
FONTGLYPH *glyph; |
92 |
|
|
97 |
if (glyph->pixmap != NULL) |
if (glyph->pixmap != NULL) |
98 |
ui_destroy_glyph(glyph->pixmap); |
ui_destroy_glyph(glyph->pixmap); |
99 |
|
|
100 |
|
glyph->offset = offset; |
101 |
glyph->baseline = baseline; |
glyph->baseline = baseline; |
102 |
glyph->width = width; |
glyph->width = width; |
103 |
glyph->height = height; |
glyph->height = height; |