コード例 #1
0
ファイル: brush.c プロジェクト: AlessioLeo/FreeRDP
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);
}