diff options
author | hobbs <hobbs@noemail.net> | 2007-12-05 19:18:07 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2007-12-05 19:18:07 (GMT) |
commit | caa0a22ca6e9082a79190bc478d76c1879c13c09 (patch) | |
tree | d6987c498f41a1e9e755b3e5031da0856ec5decb /win/tkWinX.c | |
parent | b6d4c426350b30dd45e2e33f41ad0e091bcebb7e (diff) | |
download | tk-caa0a22ca6e9082a79190bc478d76c1879c13c09.zip tk-caa0a22ca6e9082a79190bc478d76c1879c13c09.tar.gz tk-caa0a22ca6e9082a79190bc478d76c1879c13c09.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.
FossilOrigin-Name: b545e1e2fb3a24f006b12e115fc4740d5205c769
Diffstat (limited to 'win/tkWinX.c')
-rw-r--r-- | win/tkWinX.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c index 28bfda3..d577466 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.25.2.8 2006/08/30 21:53:47 hobbs Exp $ + * RCS: @(#) $Id: tkWinX.c,v 1.25.2.9 2007/12/05 19:18:09 hobbs Exp $ */ #include "tkWinInt.h" @@ -258,21 +258,7 @@ TkWinXInit(hInstance) 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; |