diff options
author | das <das> | 2007-07-02 13:06:13 (GMT) |
---|---|---|
committer | das <das> | 2007-07-02 13:06:13 (GMT) |
commit | d321bb65f9b3e1e7de35f4617931b5f248b76d33 (patch) | |
tree | 5fc7af8806bad8c68260c24f0cb060fc3724cfbe /macosx/tkMacOSXColor.c | |
parent | 5bfa0bccc1a5e8f01e52c958324ec531befc8b85 (diff) | |
download | tk-d321bb65f9b3e1e7de35f4617931b5f248b76d33.zip tk-d321bb65f9b3e1e7de35f4617931b5f248b76d33.tar.gz tk-d321bb65f9b3e1e7de35f4617931b5f248b76d33.tar.bz2 |
* macosx/tkMacOSXColor.c: add debug messages for unknown pixel values.
* macosx/tkMacOSXDraw.c (TkMacOSXRestoreDrawingContext): don't restore
port state if it wasn't altered by TkMacOSXSetupDrawingContext().
Diffstat (limited to 'macosx/tkMacOSXColor.c')
-rw-r--r-- | macosx/tkMacOSXColor.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/macosx/tkMacOSXColor.c b/macosx/tkMacOSXColor.c index 1bf9542..cc2e674 100644 --- a/macosx/tkMacOSXColor.c +++ b/macosx/tkMacOSXColor.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXColor.c,v 1.2.2.9 2007/06/29 03:22:01 das Exp $ + * RCS: @(#) $Id: tkMacOSXColor.c,v 1.2.2.10 2007/07/02 13:06:14 das Exp $ */ #include "tkMacOSXPrivate.h" @@ -300,7 +300,7 @@ TkSetMacColor( * * TkMacOSXSetColorInPort -- * - * Sets fore or back color in the current QD port from an X pixel + * Sets fore or back color in the given QD port from an X pixel * value, and if the pixel code indicates a system color, sets * the corresponding brush, textColor or background via * Appearance mgr APIs. @@ -367,6 +367,8 @@ TkMacOSXSetColorInPort( if (portChanged) { QDSwapPort(savePort, NULL); } + } else { + TkMacOSXDbgMsg("Ignored unknown pixel value 0x%lx", pixel); } if (penPat && !setPenPat) { GetPortBackPixPat(port, penPat); @@ -521,6 +523,8 @@ TkMacOSXSetColorInContext( } else if (((pixel >> 24) & 0xff) == TRANSPARENT_PIXEL) { CGContextSetRGBFillColor(context, 0.0, 0.0, 0.0, 0.0); CGContextSetRGBStrokeColor(context, 0.0, 0.0, 0.0, 0.0); + } else { + TkMacOSXDbgMsg("Ignored unknown pixel value 0x%lx", pixel); } } |