Exemple #1
0
static void update_gdi_cache_color_table(rdpContext* context, CACHE_COLOR_TABLE_ORDER* cacheColorTable)
{
	UINT32* colorTable;
	rdpCache* cache = context->cache;

	colorTable = (UINT32*) malloc(sizeof(UINT32) * 256);
	CopyMemory(colorTable, cacheColorTable->colorTable, sizeof(UINT32) * 256);

	palette_cache_put(cache->palette, cacheColorTable->cacheIndex, (void*) colorTable);
}
Exemple #2
0
void update_gdi_cache_color_table(rdpContext* context, CACHE_COLOR_TABLE_ORDER* cache_color_table)
{
	rdpCache* cache = context->cache;
	palette_cache_put(cache->palette, cache_color_table->cacheIndex, (void*) cache_color_table->colorTable);
}