示例#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);
}
示例#2
0
文件: brush.c 项目: dcatonR1/FreeRDP
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;
}
示例#3
0
文件: brush.c 项目: racoon00/FreeRDP
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);
}