diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkTreeTheme.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/generic/tkTreeTheme.c b/generic/tkTreeTheme.c index 9d246fc..bde53d8 100644 --- a/generic/tkTreeTheme.c +++ b/generic/tkTreeTheme.c @@ -5,7 +5,7 @@ * * Copyright (c) 2006 Tim Baker * - * RCS: @(#) $Id: tkTreeTheme.c,v 1.13 2006/11/07 23:08:41 treectrl Exp $ + * RCS: @(#) $Id: tkTreeTheme.c,v 1.14 2006/11/09 00:08:42 treectrl Exp $ */ #ifdef WIN32 @@ -827,8 +827,7 @@ int TreeTheme_DrawButton(TreeCtrl *tree, Drawable drawable, int open, int x, int /* Drawing the disclosure triangles produces a white background. * To avoid this, set the clipping region to the exact area where * pixels are drawn. */ -#define CLIP_BUTTON -#ifdef CLIP_BUTTON + /* Save the old clipping region because we are going to modify it. */ if (oldClip == NULL) oldClip = NewRgn(); @@ -843,7 +842,6 @@ int TreeTheme_DrawButton(TreeCtrl *tree, Drawable drawable, int open, int x, int /* Set the clipping region to the intersection of the two regions. */ SectRgn(oldClip, boundsRgn, boundsRgn); SetClip(boundsRgn); -#endif (void) DrawThemeButton(&bounds, kThemeDisclosureButton, &info, NULL, /*prevInfo*/ @@ -851,10 +849,8 @@ int TreeTheme_DrawButton(TreeCtrl *tree, Drawable drawable, int open, int x, int NULL, /*labelProc*/ NULL); /*userData*/ -#ifdef CLIP_BUTTON /* Restore the original clipping region. */ SetClip(oldClip); -#endif SetGWorld(saveWorld,saveDevice); |