diff options
author | donal.k.fellows@manchester.ac.uk <dkf> | 2007-01-11 15:35:39 (GMT) |
---|---|---|
committer | donal.k.fellows@manchester.ac.uk <dkf> | 2007-01-11 15:35:39 (GMT) |
commit | 4ac169272936319396db50753ac4b6bba33fbf6f (patch) | |
tree | 9afda096b9165b4f20fb70975876d2bf0c1c2c29 /win/tkWinRegion.c | |
parent | fbdc8db9ebc0b47f50caf2f2abb1a46a01497643 (diff) | |
download | tk-4ac169272936319396db50753ac4b6bba33fbf6f.zip tk-4ac169272936319396db50753ac4b6bba33fbf6f.tar.gz tk-4ac169272936319396db50753ac4b6bba33fbf6f.tar.bz2 |
Many minute fixes to reduce number of minor warnings from GCC.
Diffstat (limited to 'win/tkWinRegion.c')
-rw-r--r-- | win/tkWinRegion.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win/tkWinRegion.c b/win/tkWinRegion.c index 7cbdb9d..3de6d35 100644 --- a/win/tkWinRegion.c +++ b/win/tkWinRegion.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinRegion.c,v 1.6 2005/12/02 00:19:04 dkf Exp $ + * RCS: @(#) $Id: tkWinRegion.c,v 1.7 2007/01/11 15:35:41 dkf Exp $ */ #include "tkWinInt.h" @@ -206,7 +206,8 @@ TkpBuildRegionFromAlphaData( * Manipulate Win32 regions directly; it's more efficient. */ - SetRectRgn(rectRgn, x+x1, y+y1, x+end, y+y1+1); + SetRectRgn(rectRgn, (int) (x+x1), (int) (y+y1), + (int) (x+end), (int) (y+y1+1)); CombineRgn((HRGN) region, (HRGN) region, rectRgn, RGN_OR); } } |