summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXScrlbr.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-28 07:10:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-28 07:10:04 (GMT)
commit4eaa2ec24684bfb2953997f3b0e3ae2d0abaef17 (patch)
treef803b0316ca786c59412ef2accb4737974b574c3 /macosx/tkMacOSXScrlbr.c
parent3b50413f1cf04d9960be2ac55ee591ee5ac150d8 (diff)
parent9cfbd3e51461d673752779dc1a09e8011a701846 (diff)
downloadtk-4eaa2ec24684bfb2953997f3b0e3ae2d0abaef17.zip
tk-4eaa2ec24684bfb2953997f3b0e3ae2d0abaef17.tar.gz
tk-4eaa2ec24684bfb2953997f3b0e3ae2d0abaef17.tar.bz2
Merge 8.6
Diffstat (limited to 'macosx/tkMacOSXScrlbr.c')
-rw-r--r--macosx/tkMacOSXScrlbr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c
index 06e0402..8338f0e 100644
--- a/macosx/tkMacOSXScrlbr.c
+++ b/macosx/tkMacOSXScrlbr.c
@@ -174,8 +174,8 @@ static void drawMacScrollbar(
MacScrollbar *msPtr,
CGContextRef context)
{
- MacDrawable *macWin = (MacDrawable *) Tk_WindowId(scrollPtr->tkwin);
- NSView *view = TkMacOSXDrawableView(macWin);
+ Drawable d = (Drawable)Tk_WindowId(scrollPtr->tkwin);
+ NSView *view = TkMacOSXDrawableView(d);
CGPathRef path;
CGPoint inner[2], outer[2], thumbOrigin;
CGSize thumbSize;
@@ -263,7 +263,7 @@ TkpDisplayScrollbar(
if ((view == NULL)
|| (macWin->flags & TK_DO_NOT_DRAW)
- || !TkMacOSXSetupDrawingContext((Drawable) macWin, NULL, &dc)) {
+ || !TkMacOSXSetupDrawingContext((Drawable)macWin, NULL, &dc)) {
return;
}