From 438454891fd6340192f44e001aef24cee60958d9 Mon Sep 17 00:00:00 2001 From: csaba Date: Fri, 9 Aug 2024 13:51:05 +0000 Subject: [PATCH] Same cleanup as in commit [520afa7b]. Thanks Jan! --- win/tkWinButton.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/win/tkWinButton.c b/win/tkWinButton.c index 37467e37a..b9ae0b5a0 100644 --- a/win/tkWinButton.c +++ b/win/tkWinButton.c @@ -325,7 +325,6 @@ TkpDisplayButton( int y, relief; Tk_Window tkwin = butPtr->tkwin; int width = 0, height = 0, haveImage = 0, haveText = 0, drawRing = 0; - RECT rect; int defaultWidth; /* Width of default ring. */ int offset; /* 0 means this is a label widget. 1 means it * is a flavor of button, so we offset the @@ -633,10 +632,11 @@ TkpDisplayButton( if (drawRing && butPtr->flags & GOT_FOCUS && butPtr->type != TYPE_LABEL) { if (butPtr->type == TYPE_BUTTON || !butPtr->indicatorOn) { - int offset = butPtr->borderWidth + 1 + defaultWidth; + int dottedWidth = butPtr->borderWidth + 1 + defaultWidth; TkWinDrawDottedRect(butPtr->display, pixmap, gc->foreground, - offset, offset, - Tk_Width(tkwin) - 2*offset, Tk_Height(tkwin) - 2*offset); + dottedWidth, dottedWidth, + Tk_Width(tkwin) - 2*dottedWidth, + Tk_Height(tkwin) - 2*dottedWidth); } else { TkWinDrawDottedRect(butPtr->display, pixmap, gc->foreground, x-1 + textXOffset, y-1 + textYOffset,