summaryrefslogtreecommitdiffstats
path: root/win/tkWinDraw.c
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@noemail.net>2007-10-24 01:03:37 (GMT)
committerpatthoyts <patthoyts@noemail.net>2007-10-24 01:03:37 (GMT)
commitcdc413660803a2d8ed88478d3828b26361cba224 (patch)
tree9566ae8d9b743d980d258cd559a44562b04b2e4c /win/tkWinDraw.c
parenteb95135d0e36fa085886e49023fe0bb5c3e9b6a0 (diff)
downloadtk-cdc413660803a2d8ed88478d3828b26361cba224.zip
tk-cdc413660803a2d8ed88478d3828b26361cba224.tar.gz
tk-cdc413660803a2d8ed88478d3828b26361cba224.tar.bz2
Applied patch from #1723362 for transparent bitmaps
FossilOrigin-Name: 7e79cdbfba5d7c5d54f4cb18f5063fb6515568a8
Diffstat (limited to 'win/tkWinDraw.c')
-rw-r--r--win/tkWinDraw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/win/tkWinDraw.c b/win/tkWinDraw.c
index 8c736ab..d1be3e1 100644
--- a/win/tkWinDraw.c
+++ b/win/tkWinDraw.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinDraw.c,v 1.18 2007/01/11 15:35:40 dkf Exp $
+ * RCS: @(#) $Id: tkWinDraw.c,v 1.19 2007/10/24 01:03:37 patthoyts Exp $
*/
#include "tkWinInt.h"
@@ -414,6 +414,8 @@ XCopyPlane(
fgBrush = CreateSolidBrush(gc->foreground);
oldBrush = SelectObject(destDC, fgBrush);
+ SetBkColor(destDC, RGB(255,255,255));
+ SetTextColor(destDC, RGB(0,0,0));
BitBlt(destDC, dest_x, dest_y, (int) width, (int) height, srcDC,
src_x, src_y, MASKPAT);
SelectObject(destDC, oldBrush);