mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
libfreerdp-cache: fix handling of cached brushes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user