Exemple #1
0
static void update_gdi_cache_brush(rdpContext* context, CACHE_BRUSH_ORDER* cache_brush)
{
	int length;
	void* data = NULL;
	rdpCache* cache = context->cache;

	length = cache_brush->bpp * 64 / 8;

	data = malloc(length);
	CopyMemory(data, cache_brush->data, length);

	brush_cache_put(cache->brush, cache_brush->index, data, cache_brush->bpp);
}
Exemple #2
0
static BOOL update_gdi_cache_brush(rdpContext* context,
				   const CACHE_BRUSH_ORDER* cacheBrush)
{
	UINT32 length;
	void* data = NULL;
	rdpCache* cache = context->cache;

	length = cacheBrush->bpp * 64 / 8;

	data = malloc(length);
	if (!data)
		return FALSE;
	CopyMemory(data, cacheBrush->data, length);

	brush_cache_put(cache->brush, cacheBrush->index, data, cacheBrush->bpp);
	return TRUE;
}
Exemple #3
0
void update_gdi_cache_brush(rdpUpdate* update, CACHE_BRUSH_ORDER* cache_brush)
{
	rdpCache* cache = update->context->cache;
	brush_cache_put(cache->brush, cache_brush->index, cache_brush->data, cache_brush->bpp);
}