summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorandreas_kupries <andreas_kupries@noemail.net>2009-01-16 23:45:32 (GMT)
committerandreas_kupries <andreas_kupries@noemail.net>2009-01-16 23:45:32 (GMT)
commite00a3f2b2aed39c8e17a764f70e491633ba6fea0 (patch)
tree47222533ed55420dc62da877b683ef22bd10aac5 /win
parent68a86a9d2a7eedfd52c4bca2314095499d0e1053 (diff)
downloadtk-e00a3f2b2aed39c8e17a764f70e491633ba6fea0.zip
tk-e00a3f2b2aed39c8e17a764f70e491633ba6fea0.tar.gz
tk-e00a3f2b2aed39c8e17a764f70e491633ba6fea0.tar.bz2
* win/tkWinWm.c (WmAttributesCmd): Fix a single use of
SetWindowLongPtr which was not properly ifdef'd. FossilOrigin-Name: 75bf70aee586387e8425096b913e390588e2e0fa
Diffstat (limited to 'win')
-rw-r--r--win/tkWinWm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index 2cc885c..5b0a4ec 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinWm.c,v 1.54.2.28 2007/12/05 19:18:09 hobbs Exp $
+ * RCS: @(#) $Id: tkWinWm.c,v 1.54.2.29 2009/01/16 23:45:32 andreas_kupries Exp $
*/
#include "tkWinInt.h"
@@ -2990,8 +2990,13 @@ WmAttributesCmd(tkwin, winPtr, interp, objc, objv)
* translation. Add the 0.5 to round the value.
*/
if (!(wmPtr->exStyleConfig & WS_EX_LAYERED)) {
+#ifdef _WIN64
SetWindowLongPtr(wmPtr->wrapper, GWL_EXSTYLE,
*stylePtr);
+#else
+ SetWindowLongPtr(wmPtr->wrapper, GWL_EXSTYLE,
+ *stylePtr);
+#endif
}
setLayeredWindowAttributesProc((HWND) wmPtr->wrapper,
wmPtr->colorref, (BYTE) (wmPtr->alpha * 255 + 0.5),