diff options
author | treectrl <treectrl> | 2007-04-21 21:34:00 (GMT) |
---|---|---|
committer | treectrl <treectrl> | 2007-04-21 21:34:00 (GMT) |
commit | 9b77e9e7deb66533f2b70a21659508cb760338f8 (patch) | |
tree | 8716bfb0b480091b2998a61dc27c90f798c3b6e4 /generic/tkTreeStyle.c | |
parent | 54e5169747c056eac04265cbb1ec52633ba55f6e (diff) | |
download | tktreectrl-9b77e9e7deb66533f2b70a21659508cb760338f8.zip tktreectrl-9b77e9e7deb66533f2b70a21659508cb760338f8.tar.gz tktreectrl-9b77e9e7deb66533f2b70a21659508cb760338f8.tar.bz2 |
Fixed partially-exposed transparent photo images not being redrawn when scrolling under X11. This involved creating a wrapper around Tk_RedrawImage to ensure proper clipping of the source image to the bounds of the destination drawable. A new data type TreeDrawable remembers the height and width of a drawable.
Diffstat (limited to 'generic/tkTreeStyle.c')
-rw-r--r-- | generic/tkTreeStyle.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tkTreeStyle.c b/generic/tkTreeStyle.c index 851420f..a983d08 100644 --- a/generic/tkTreeStyle.c +++ b/generic/tkTreeStyle.c @@ -5,7 +5,7 @@ * * Copyright (c) 2002-2006 Tim Baker * - * RCS: @(#) $Id: tkTreeStyle.c,v 1.74 2007/01/31 00:52:17 treectrl Exp $ + * RCS: @(#) $Id: tkTreeStyle.c,v 1.75 2007/04/21 21:34:01 treectrl Exp $ */ #include "tkTreeCtrl.h" @@ -2347,7 +2347,8 @@ void TreeStyle_Draw( args.tree = tree; args.state = drawArgs->state; - args.display.drawable = drawArgs->drawable; + args.display.td = drawArgs->td; + args.display.drawable = drawArgs->td.drawable; for (i = 0; i < masterStyle->numElements; i++) { struct Layout *layout = &layouts[i]; @@ -2541,7 +2542,8 @@ TreeStyle_UpdateWindowPositions( args.tree = tree; args.state = drawArgs->state; - args.display.drawable = drawArgs->drawable; + args.display.td = drawArgs->td; + args.display.drawable = drawArgs->td.drawable; for (i = 0; i < numElements; i++) { struct Layout *layout = &layouts[i]; |