diff options
author | treectrl <treectrl> | 2006-11-09 00:08:42 (GMT) |
---|---|---|
committer | treectrl <treectrl> | 2006-11-09 00:08:42 (GMT) |
commit | 2d978b79777f030942cfafb710b4eda3bb9b0768 (patch) | |
tree | f72324c215cfcd2044835fdf0adcb12547ac62da /generic/tkTreeTheme.c | |
parent | 8b8f8f83958089b3f2987cda2a295c988fecbcaa (diff) | |
download | tktreectrl-2d978b79777f030942cfafb710b4eda3bb9b0768.zip tktreectrl-2d978b79777f030942cfafb710b4eda3bb9b0768.tar.gz tktreectrl-2d978b79777f030942cfafb710b4eda3bb9b0768.tar.bz2 |
Fixed disclosure triangles being drawn with a white background under OSX.
Diffstat (limited to 'generic/tkTreeTheme.c')
-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); |