예제 #1
0
파일: xf_gdi.c 프로젝트: kidfolk/FreeRDP
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);
	}
}
예제 #2
0
파일: xf_gdi.c 프로젝트: ngraziano/FreeRDP
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);
	}
}