summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXDraw.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-28 06:53:09 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-28 06:53:09 (GMT)
commit9cfbd3e51461d673752779dc1a09e8011a701846 (patch)
tree6b2e48e059cfc385635440f677944391119241c3 /macosx/tkMacOSXDraw.c
parent598c3532de71adbe68ce397aafcfbe00670a00f4 (diff)
downloadtk-9cfbd3e51461d673752779dc1a09e8011a701846.zip
tk-9cfbd3e51461d673752779dc1a09e8011a701846.tar.gz
tk-9cfbd3e51461d673752779dc1a09e8011a701846.tar.bz2
Add some explicit typecasts, e.g. to (Drawable), and prevent higher-level compiler warnings
Diffstat (limited to 'macosx/tkMacOSXDraw.c')
-rw-r--r--macosx/tkMacOSXDraw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c
index 57680a9..15d1eb5 100644
--- a/macosx/tkMacOSXDraw.c
+++ b/macosx/tkMacOSXDraw.c
@@ -1271,7 +1271,7 @@ TkMacOSXSetupDrawingContext(
*/
if (!(macDraw->flags & TK_IS_PIXMAP)) {
- view = TkMacOSXDrawableView(macDraw);
+ view = TkMacOSXDrawableView(d);
if (!view) {
Tcl_Panic("TkMacOSXSetupDrawingContext(): "
"no NSView to draw into !");