summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvas.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-02 15:40:48 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-02 15:40:48 (GMT)
commit9c29a905fa4d7ec4c5aa8528475f312dc3d39dab (patch)
tree6c94fb72da3aeb402db2137cefad6a41830b6ae8 /generic/tkCanvas.c
parent7b5d5a25262a780c7488a3d129948e849047fdc7 (diff)
downloadtk-9c29a905fa4d7ec4c5aa8528475f312dc3d39dab.zip
tk-9c29a905fa4d7ec4c5aa8528475f312dc3d39dab.tar.gz
tk-9c29a905fa4d7ec4c5aa8528475f312dc3d39dab.tar.bz2
More implicit type-casts, for C++ compatibility.
Diffstat (limited to 'generic/tkCanvas.c')
-rw-r--r--generic/tkCanvas.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c
index 2ce5e50..0e4e872 100644
--- a/generic/tkCanvas.c
+++ b/generic/tkCanvas.c
@@ -2450,6 +2450,10 @@ DisplayCanvas(
Tk_Item *itemPtr;
Pixmap pixmap;
int screenX1, screenX2, screenY1, screenY2, width, height;
+#ifdef MAC_OSX_TK
+ TkWindow *winPtr;
+ MacDrawable *macWin;
+#endif
if (canvasPtr->tkwin == NULL) {
return;
@@ -2464,8 +2468,8 @@ DisplayCanvas(
* If drawing is disabled, all we need to do is
* clear the REDRAW_PENDING flag.
*/
- TkWindow *winPtr = (TkWindow *)(canvasPtr->tkwin);
- MacDrawable *macWin = winPtr->privatePtr;
+ winPtr = (TkWindow *)(canvasPtr->tkwin);
+ macWin = winPtr->privatePtr;
if (macWin && (macWin->flags & TK_DO_NOT_DRAW)){
canvasPtr->flags &= ~REDRAW_PENDING;
return;