summaryrefslogtreecommitdiffstats
path: root/win/tkWinButton.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2007-01-11 15:35:38 (GMT)
committerdkf <dkf@noemail.net>2007-01-11 15:35:38 (GMT)
commitbc95aa62be8456f69d3a5834a35d561d094e0370 (patch)
tree9afda096b9165b4f20fb70975876d2bf0c1c2c29 /win/tkWinButton.c
parent6be95639cd219118015e01613e639e7222008b4a (diff)
downloadtk-bc95aa62be8456f69d3a5834a35d561d094e0370.zip
tk-bc95aa62be8456f69d3a5834a35d561d094e0370.tar.gz
tk-bc95aa62be8456f69d3a5834a35d561d094e0370.tar.bz2
Many minute fixes to reduce number of minor warnings from GCC.
FossilOrigin-Name: 07047209ee3fabf64df75844ccc749416e247cd7
Diffstat (limited to 'win/tkWinButton.c')
-rw-r--r--win/tkWinButton.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/win/tkWinButton.c b/win/tkWinButton.c
index c79aff8..7a1ed35 100644
--- a/win/tkWinButton.c
+++ b/win/tkWinButton.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: tkWinButton.c,v 1.30 2006/12/19 19:51:06 hobbs Exp $
+ * RCS: @(#) $Id: tkWinButton.c,v 1.31 2007/01/11 15:35:40 dkf Exp $
*/
#define OEMRESOURCE
@@ -725,9 +725,10 @@ TkpDisplayButton(
border, TK_3D_FLAT_GC));
dc = TkWinGetDrawableDC(butPtr->display, pixmap, &state);
- StretchDIBits(dc, x, y, tsdPtr->boxWidth, tsdPtr->boxHeight, xSrc,
- ySrc, tsdPtr->boxWidth, tsdPtr->boxHeight, tsdPtr->boxesBits,
- (LPBITMAPINFO) tsdPtr->boxesPtr, DIB_RGB_COLORS, SRCCOPY);
+ StretchDIBits(dc, x, y, (int)tsdPtr->boxWidth, (int)tsdPtr->boxHeight,
+ xSrc, ySrc, (int)tsdPtr->boxWidth, (int)tsdPtr->boxHeight,
+ tsdPtr->boxesBits, (LPBITMAPINFO) tsdPtr->boxesPtr,
+ DIB_RGB_COLORS, SRCCOPY);
TkWinReleaseDrawableDC(pixmap, dc, &state);
}
@@ -781,15 +782,15 @@ TkpDisplayButton(
if (defaultWidth != 0) {
dc = TkWinGetDrawableDC(butPtr->display, pixmap, &state);
TkWinFillRect(dc, 0, 0, Tk_Width(tkwin), defaultWidth,
- butPtr->highlightColorPtr->pixel);
+ (int) butPtr->highlightColorPtr->pixel);
TkWinFillRect(dc, 0, 0, defaultWidth, Tk_Height(tkwin),
- butPtr->highlightColorPtr->pixel);
+ (int) butPtr->highlightColorPtr->pixel);
TkWinFillRect(dc, 0, Tk_Height(tkwin) - defaultWidth,
Tk_Width(tkwin), defaultWidth,
- butPtr->highlightColorPtr->pixel);
+ (int) butPtr->highlightColorPtr->pixel);
TkWinFillRect(dc, Tk_Width(tkwin) - defaultWidth, 0,
defaultWidth, Tk_Height(tkwin),
- butPtr->highlightColorPtr->pixel);
+ (int) butPtr->highlightColorPtr->pixel);
TkWinReleaseDrawableDC(pixmap, dc, &state);
}
@@ -1083,6 +1084,8 @@ TkpComputeButtonGeometry(
height = imgHeight;
}
break;
+ case COMPOUND_NONE:
+ break;
} /* switch */
/*