Corrected SET_FOREGROUND/SET_BACKGROUND in Hatch handling routine.

This should be done according to patch 688390, and feels right,
although I basically have no idea of what I'm doing :-)


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@486 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2003-10-13 12:34:15 +00:00
parent 053e3e0eec
commit 1aa4de5ab0

4
xwin.c
View File

@ -1596,8 +1596,8 @@ ui_patblt(uint8 opcode,
case 2: /* Hatch */
fill = (Pixmap) ui_create_glyph(8, 8,
hatch_patterns + brush->pattern[0] * 8);
SET_FOREGROUND(bgcolour);
SET_BACKGROUND(fgcolour);
SET_FOREGROUND(fgcolour);
SET_BACKGROUND(bgcolour);
XSetFillStyle(g_display, g_gc, FillOpaqueStippled);
XSetStipple(g_display, g_gc, fill);
XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin);