void xf_gdi_cache_glyph(rdpUpdate* update, CACHE_GLYPH_ORDER* cache_glyph) { int i; Pixmap bitmap; GLYPH_DATA* glyph; xfInfo* xfi = GET_XFI(update); for (i = 0; i < cache_glyph->cGlyphs; i++) { glyph = cache_glyph->glyphData[i]; bitmap = xf_glyph_new(xfi, glyph->cx, glyph->cy, glyph->aj); glyph_put(xfi->cache->glyph, cache_glyph->cacheId, glyph->cacheIndex, glyph, (void*) bitmap); } }
void xf_gdi_cache_glyph(rdpUpdate* update, CACHE_GLYPH_ORDER* cache_glyph) { int i; Pixmap bitmap; GLYPH_DATA* glyph; xfInfo* xfi = ((xfContext*) update->context)->xfi; rdpCache* cache = update->context->cache; for (i = 0; i < cache_glyph->cGlyphs; i++) { glyph = cache_glyph->glyphData[i]; bitmap = xf_glyph_new(xfi, glyph->cx, glyph->cy, glyph->aj); glyph_put(cache->glyph, cache_glyph->cacheId, glyph->cacheIndex, glyph, (void*) bitmap); } }