diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-06-08 16:57:03 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-06-08 16:57:03 (GMT) |
commit | 321e94853dc9a87fb9eab06376938a85fa2c767a (patch) | |
tree | 3125f74fb7d6f8d0774c41f843402e22fe39bd20 /macosx/tkMacOSXImage.c | |
parent | a3eb1edc6e9c2eb227b40c7d46f42e6162be78d6 (diff) | |
download | tk-321e94853dc9a87fb9eab06376938a85fa2c767a.zip tk-321e94853dc9a87fb9eab06376938a85fa2c767a.tar.gz tk-321e94853dc9a87fb9eab06376938a85fa2c767a.tar.bz2 |
Add more type-casts, code cleanup (all backported from 8.7)
Diffstat (limited to 'macosx/tkMacOSXImage.c')
-rw-r--r-- | macosx/tkMacOSXImage.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/macosx/tkMacOSXImage.c b/macosx/tkMacOSXImage.c index ea08dc5..5f55638 100644 --- a/macosx/tkMacOSXImage.c +++ b/macosx/tkMacOSXImage.c @@ -114,7 +114,7 @@ _XInitImageFuncPtrs( static void ReleaseData( void *info, TCL_UNUSED(const void *), /* data */ - TCL_UNUSED(size_t)) /* size */ + TCL_UNUSED(size_t)) /* size */ { ckfree(info); } @@ -388,7 +388,7 @@ ImagePutPixel( XImage * XCreateImage( Display* display, - TCL_UNUSED(Visual*), /* visual */ + TCL_UNUSED(Visual*), /* visual */ unsigned int depth, int format, int offset, @@ -503,6 +503,7 @@ TkMacOSXPutImage( TkMacOSXDrawingContext dc; MacDrawable *macDraw = (MacDrawable *)drawable; int result = Success; + LastKnownRequestProcessed(display)++; if (!TkMacOSXSetupDrawingContext(drawable, gc, &dc)) { return BadDrawable; @@ -747,7 +748,7 @@ XGetImage( int y, unsigned int width, unsigned int height, - TCL_UNUSED(unsigned long), /* plane_mask */ + TCL_UNUSED(unsigned long), /* plane_mask */ int format) { NSBitmapImageRep* bitmapRep = nil; |