summaryrefslogtreecommitdiffstats
path: root/win/tkWin3d.c
diff options
context:
space:
mode:
authorpatthoyts@users.sourceforge.net <patthoyts>2003-08-20 23:31:38 (GMT)
committerpatthoyts@users.sourceforge.net <patthoyts>2003-08-20 23:31:38 (GMT)
commitba2da0bcedc0cb8c2d6ec2d5275f1cba6c9b86ef (patch)
tree17c436c5cd7a25f4f297787a4807436a5ea238e9 /win/tkWin3d.c
parent9a7ac3f0c58cc11280ebc13ee429882c4cb997f1 (diff)
downloadtk-ba2da0bcedc0cb8c2d6ec2d5275f1cba6c9b86ef.zip
tk-ba2da0bcedc0cb8c2d6ec2d5275f1cba6c9b86ef.tar.gz
tk-ba2da0bcedc0cb8c2d6ec2d5275f1cba6c9b86ef.tar.bz2
* win/tkWin3d.c: Applied Tk patch 791273 from Jeremy Collins which
improves the 3d lines for sunken widgets under windows.
Diffstat (limited to 'win/tkWin3d.c')
-rw-r--r--win/tkWin3d.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/win/tkWin3d.c b/win/tkWin3d.c
index 8161eba..1b14dd2 100644
--- a/win/tkWin3d.c
+++ b/win/tkWin3d.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWin3d.c,v 1.5 2000/04/14 01:36:35 ericm Exp $
+ * RCS: @(#) $Id: tkWin3d.c,v 1.6 2003/08/20 23:31:39 patthoyts Exp $
*/
#include "tkWinInt.h"
@@ -146,10 +146,10 @@ Tk_3DVerticalBevel(tkwin, drawable, border, x, y, width, height,
break;
case TK_RELIEF_SUNKEN:
left = (leftBevel)
- ? ((WinBorder *)borderPtr)->dark2ColorPtr->pixel
+ ? borderPtr->darkGC->foreground
: ((WinBorder *)borderPtr)->light2ColorPtr->pixel;
right = (leftBevel)
- ? borderPtr->darkGC->foreground
+ ? ((WinBorder *)borderPtr)->dark2ColorPtr->pixel
: borderPtr->lightGC->foreground;
break;
case TK_RELIEF_RIDGE:
@@ -247,10 +247,10 @@ Tk_3DHorizontalBevel(tkwin, drawable, border, x, y, width, height,
break;
case TK_RELIEF_SUNKEN:
topColor = (topBevel)
- ? ((WinBorder *)borderPtr)->dark2ColorPtr->pixel
+ ? borderPtr->darkGC->foreground
: ((WinBorder *)borderPtr)->light2ColorPtr->pixel;
bottomColor = (topBevel)
- ? borderPtr->darkGC->foreground
+ ? ((WinBorder *)borderPtr)->dark2ColorPtr->pixel
: borderPtr->lightGC->foreground;
break;
case TK_RELIEF_RIDGE: