summaryrefslogtreecommitdiffstats
path: root/win/tkWinX.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2007-12-05 19:01:48 (GMT)
committerhobbs <hobbs>2007-12-05 19:01:48 (GMT)
commit7e7893fe4ebe4a4a67623d2fcf69d117cf4039dc (patch)
tree598e3f8ed33e715971ae7cb85e622b9b43603c1d /win/tkWinX.c
parent43b261709d1778d45d80eb0bcce2dad20584f8b5 (diff)
downloadtk-7e7893fe4ebe4a4a67623d2fcf69d117cf4039dc.zip
tk-7e7893fe4ebe4a4a67623d2fcf69d117cf4039dc.tar.gz
tk-7e7893fe4ebe4a4a67623d2fcf69d117cf4039dc.tar.bz2
* win/tkWinInt.h: remove CS_CLASSDC (not recommended for any apps now)
* win/tkWinX.c: and simplify WNDCLASS to one style. * win/tkWinWm.c: Reduce wrapper update for exStyle to toolwindow change only and set WS_EX_LAYERED as sticky (once set on a window, do not remove it) to reduce alpha transition flicker.
Diffstat (limited to 'win/tkWinX.c')
-rw-r--r--win/tkWinX.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c
index 145eb6d..d4e817c 100644
--- a/win/tkWinX.c
+++ b/win/tkWinX.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: tkWinX.c,v 1.55 2007/01/11 15:35:41 dkf Exp $
+ * RCS: @(#) $Id: tkWinX.c,v 1.56 2007/12/05 19:01:49 hobbs Exp $
*/
/*
@@ -274,21 +274,7 @@ TkWinXInit(
tkWinProcs = &asciiProcs;
}
- /*
- * When threads are enabled, we cannot use CLASSDC because threads will
- * then write into the same device context.
- *
- * This is a hack; we should add a subsystem that manages device context
- * on a per-thread basis. See also tkWinWm.c, which also initializes a
- * WNDCLASS structure.
- */
-
-#ifdef TCL_THREADS
childClass.style = CS_HREDRAW | CS_VREDRAW;
-#else
- childClass.style = CS_HREDRAW | CS_VREDRAW | CS_CLASSDC;
-#endif
-
childClass.cbClsExtra = 0;
childClass.cbWndExtra = 0;
childClass.hInstance = hInstance;