diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-08-27 06:15:45 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-08-27 06:15:45 (GMT) |
commit | 65e5e8caee2f25cf407f0ca73751bd1118f84d02 (patch) | |
tree | 9a2f7710798fead6c0b1ea991ea08aed01fd2c2b /macosx/tkMacOSXDraw.c | |
parent | 5d0b340749ee84c407fde84ba7b4daba94f6502c (diff) | |
download | tk-65e5e8caee2f25cf407f0ca73751bd1118f84d02.zip tk-65e5e8caee2f25cf407f0ca73751bd1118f84d02.tar.gz tk-65e5e8caee2f25cf407f0ca73751bd1118f84d02.tar.bz2 |
Eliminate type casts to (TKContentView *)
Diffstat (limited to 'macosx/tkMacOSXDraw.c')
-rw-r--r-- | macosx/tkMacOSXDraw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c index 8e096bc..57680a9 100644 --- a/macosx/tkMacOSXDraw.c +++ b/macosx/tkMacOSXDraw.c @@ -1140,7 +1140,7 @@ TkScrollWindow( { Drawable drawable = Tk_WindowId(tkwin); MacDrawable *macDraw = (MacDrawable *) drawable; - TKContentView *view = (TKContentView *) TkMacOSXDrawableView(macDraw); + TKContentView *view = TkMacOSXDrawableView(macDraw); CGRect srcRect, dstRect; HIShapeRef dmgRgn = NULL, extraRgn = NULL; NSRect bounds, visRect, scrollSrc, scrollDst; @@ -1271,7 +1271,7 @@ TkMacOSXSetupDrawingContext( */ if (!(macDraw->flags & TK_IS_PIXMAP)) { - view = (TKContentView *) TkMacOSXDrawableView(macDraw); + view = TkMacOSXDrawableView(macDraw); if (!view) { Tcl_Panic("TkMacOSXSetupDrawingContext(): " "no NSView to draw into !"); |