summaryrefslogtreecommitdiffstats
path: root/win/tkWinColor.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2014-02-04 08:52:33 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2014-02-04 08:52:33 (GMT)
commitde445d487d5a80ad9c8a49d28f8db7d6a24b463e (patch)
tree782d114e8acacf526b660528a7be468dd31ce666 /win/tkWinColor.c
parent0688248a16db42960dd4cd62e44565a1d940fe92 (diff)
parent6c6084d66c4ec111a3e3c9f4af5518d929313fef (diff)
downloadtk-de445d487d5a80ad9c8a49d28f8db7d6a24b463e.zip
tk-de445d487d5a80ad9c8a49d28f8db7d6a24b463e.tar.gz
tk-de445d487d5a80ad9c8a49d28f8db7d6a24b463e.tar.bz2
Fix [http://core.tcl.tk/tcl/info/651e828a52|651e828a52]: Wrong Windows version reported for Windows 8.1.
Remove some dead code (since Win95/98/ME is no longer supported)
Diffstat (limited to 'win/tkWinColor.c')
-rw-r--r--win/tkWinColor.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/win/tkWinColor.c b/win/tkWinColor.c
index fee3ee2..5eaeeb3 100644
--- a/win/tkWinColor.c
+++ b/win/tkWinColor.c
@@ -97,7 +97,6 @@ FindSystemColor(
{
int l, u, r, i;
int index;
- int version = LOBYTE(LOWORD(GetVersion()));
/*
* Perform a binary search on the sorted array of colors.
@@ -120,15 +119,7 @@ FindSystemColor(
return 0;
}
- index = sysColors[i].index;
- if (version < 4) {
- if (index == COLOR_3DDKSHADOW) {
- index = COLOR_BTNSHADOW;
- } else if (index == COLOR_3DLIGHT) {
- index = COLOR_BTNHIGHLIGHT;
- }
- }
- *indexPtr = index;
+ *indexPtr = index = sysColors[i].index;
colorPtr->pixel = GetSysColor(index);
/*