libfreerdp-cache: fix handling of cached brushes

This commit is contained in:
Marc-André Moreau
2011-12-31 12:06:09 -05:00
parent e95dcc4c5e
commit 25da218d6a

View File

@@ -26,9 +26,12 @@
void update_gdi_patblt(rdpContext* context, PATBLT_ORDER* patblt)
{
uint8 style;
rdpBrush* brush = &patblt->brush;
rdpCache* cache = context->cache;
style = brush->style;
if (brush->style & CACHED_BRUSH)
{
brush->data = brush_cache_get(cache->brush, brush->index, &brush->bpp);
@@ -36,6 +39,7 @@ void update_gdi_patblt(rdpContext* context, PATBLT_ORDER* patblt)
}
IFCALL(cache->brush->PatBlt, context, patblt);
brush->style = style;
}
void update_gdi_cache_brush(rdpContext* context, CACHE_BRUSH_ORDER* cache_brush)