diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2015-07-08 07:54:08 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2015-07-08 07:54:08 (GMT) |
commit | ffbce7ba830f41f5ca060cd996bf02a2202786e6 (patch) | |
tree | 16cd8e062060db885208ea156a7c74aa9751ee83 /macosx | |
parent | 988c2a0a9af25443ec7ab9f4879f735e5cc41907 (diff) | |
download | tk-ffbce7ba830f41f5ca060cd996bf02a2202786e6.zip tk-ffbce7ba830f41f5ca060cd996bf02a2202786e6.tar.gz tk-ffbce7ba830f41f5ca060cd996bf02a2202786e6.tar.bz2 |
Use size_t in stead of int for some internal refCount variables. On 32-bit systems, this doubles the range (as size_t is unsigned), on 64-bit system much more than that.
FossilOrigin-Name: 2473b35f090d0c86a2a33666da7bfb2ded47e59c
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXDraw.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXScrlbr.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c index 0f6d2f0..5f31a2c 100644 --- a/macosx/tkMacOSXDraw.c +++ b/macosx/tkMacOSXDraw.c @@ -769,7 +769,7 @@ DrawCGImage( dstBounds.size.width, dstBounds.size.height); #else /* TK_MAC_DEBUG_IMAGE_DRAWING */ CGContextSaveGState(context); - CGContextTranslateCTM(context, 0, + CGContextTranslateCTM(context, 0, dstBounds.origin.y + CGRectGetMaxY(dstBounds)); CGContextScaleCTM(context, 1, -1); CGContextDrawImage(context, dstBounds, image); diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c index 37178ed..91cf112 100644 --- a/macosx/tkMacOSXScrlbr.c +++ b/macosx/tkMacOSXScrlbr.c @@ -384,7 +384,7 @@ TkpScrollbarPosition( x = y; y = tmp; length = Tk_Width(scrollPtr->tkwin); - fieldlength = length - 2 * arrowSize; + fieldlength = length - 2 * arrowSize; width = Tk_Height(scrollPtr->tkwin); } fieldlength = fieldlength < 0 ? 0 : fieldlength; |