From 651887c7e07cbe05e331dfb649de229ae70f1d05 Mon Sep 17 00:00:00 2001 From: Pavel Tsekov Date: Thu, 14 Aug 2014 20:21:49 +0300 Subject: [PATCH] Fix erronous use of colors in gdi_patblt(). * libfreerdp/gdi/gdi.c: (gdi_patblt): Fix a call to freerdp_mono_image_convert() which was still passed colors in drawing order representation instead of GDI representation. --- libfreerdp/gdi/gdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp/gdi/gdi.c b/libfreerdp/gdi/gdi.c index e76012f0c..90c5c90d2 100644 --- a/libfreerdp/gdi/gdi.c +++ b/libfreerdp/gdi/gdi.c @@ -517,7 +517,7 @@ void gdi_patblt(rdpContext* context, PATBLT_ORDER* patblt) HGDI_BITMAP hBmp; data = freerdp_mono_image_convert(GDI_BS_HATCHED_PATTERNS + 8 * brush->hatch, 8, 8, 1, - gdi->dstBpp, patblt->backColor, patblt->foreColor, gdi->clrconv); + gdi->dstBpp, backColor, foreColor, gdi->clrconv); hBmp = gdi_CreateBitmap(8, 8, gdi->drawing->hdc->bitsPerPixel, data);