diff options
author | dgp@users.sourceforge.net <dgp> | 2004-06-08 20:28:19 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2004-06-08 20:28:19 (GMT) |
commit | 2cd3d68a23cb58e09a3682b0880852fc8711b9d6 (patch) | |
tree | 19316394432448d84d95a9069c57a13f7d7fed04 /generic/tkCanvBmap.c | |
parent | b0a33f5eebb16683ac6e39a3a17e9f73cd225d34 (diff) | |
download | tk-2cd3d68a23cb58e09a3682b0880852fc8711b9d6.zip tk-2cd3d68a23cb58e09a3682b0880852fc8711b9d6.tar.gz tk-2cd3d68a23cb58e09a3682b0880852fc8711b9d6.tar.bz2 |
Silence compiler warnings
Diffstat (limited to 'generic/tkCanvBmap.c')
-rw-r--r-- | generic/tkCanvBmap.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/generic/tkCanvBmap.c b/generic/tkCanvBmap.c index 887c554..e38a7f4 100644 --- a/generic/tkCanvBmap.c +++ b/generic/tkCanvBmap.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkCanvBmap.c,v 1.9 2004/01/13 02:06:00 davygrvy Exp $ + * RCS: @(#) $Id: tkCanvBmap.c,v 1.10 2004/06/08 20:28:19 dgp Exp $ */ #include <stdio.h> @@ -606,8 +606,6 @@ DisplayBitmap(canvas, itemPtr, display, drawable, x, y, width, height) BitmapItem *bmapPtr = (BitmapItem *) itemPtr; int bmapX, bmapY, bmapWidth, bmapHeight; short drawableX, drawableY; - XColor *fgColor; - XColor *bgColor; Pixmap bitmap; Tk_State state = itemPtr->state; @@ -620,26 +618,12 @@ DisplayBitmap(canvas, itemPtr, display, drawable, x, y, width, height) if(state == TK_STATE_NULL) { state = ((TkCanvas *)canvas)->canvas_state; } - fgColor = bmapPtr->fgColor; - bgColor = bmapPtr->bgColor; bitmap = bmapPtr->bitmap; if (((TkCanvas *)canvas)->currentItemPtr == itemPtr) { - if (bmapPtr->activeFgColor!=NULL) { - fgColor = bmapPtr->activeFgColor; - } - if (bmapPtr->activeBgColor!=NULL) { - bgColor = bmapPtr->activeBgColor; - } if (bmapPtr->activeBitmap!=None) { bitmap = bmapPtr->activeBitmap; } } else if (state==TK_STATE_DISABLED) { - if (bmapPtr->disabledFgColor!=NULL) { - fgColor = bmapPtr->disabledFgColor; - } - if (bmapPtr->disabledBgColor!=NULL) { - bgColor = bmapPtr->disabledBgColor; - } if (bmapPtr->disabledBitmap!=None) { bitmap = bmapPtr->disabledBitmap; } |