Fixed patblt for mono color. #3678

This commit is contained in:
Armin Novak 2017-01-09 15:23:10 +01:00
parent 3787c9d3a4
commit 085ee3ac0f

View File

@ -378,8 +378,8 @@ static BOOL xf_gdi_patblt(rdpContext* context, PATBLT_ORDER* patblt)
else
{
Pixmap pattern = xf_mono_bitmap_new(xfc, 8, 8, brush->data);
XSetBackground(xfc->display, xfc->gc, backColor);
XSetForeground(xfc->display, xfc->gc, foreColor);
XSetBackground(xfc->display, xfc->gc, foreColor);
XSetForeground(xfc->display, xfc->gc, backColor);
XSetFillStyle(xfc->display, xfc->gc, FillOpaqueStippled);
XSetStipple(xfc->display, xfc->gc, pattern);
XSetTSOrigin(xfc->display, xfc->gc, brush->x, brush->y);