diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-06-10 20:46:00 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-06-10 20:46:00 (GMT) |
commit | 0b10d3c445a80c34b182268ddd4886a69d8a9047 (patch) | |
tree | 37d0a5eecd479c27507bcac3f7367c99137456a5 /win | |
parent | 171e4042f5d12fffb74e16d70c99d46f72196541 (diff) | |
download | tk-0b10d3c445a80c34b182268ddd4886a69d8a9047.zip tk-0b10d3c445a80c34b182268ddd4886a69d8a9047.tar.gz tk-0b10d3c445a80c34b182268ddd4886a69d8a9047.tar.bz2 |
Fix indenting
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinButton.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/win/tkWinButton.c b/win/tkWinButton.c index 88b98c6..e0998b5 100644 --- a/win/tkWinButton.c +++ b/win/tkWinButton.c @@ -628,7 +628,7 @@ TkpDisplayButton( if (butPtr->type == TYPE_LABEL) { defaultWidth = butPtr->highlightWidth; - offset = 0; + offset = 0; } else if (butPtr->type == TYPE_BUTTON) { defaultWidth = ((butPtr->defaultState == DEFAULT_ACTIVE) ? butPtr->highlightWidth : 0); @@ -934,14 +934,14 @@ TkpDisplayButton( butPtr->borderWidth, relief); } if (defaultWidth != 0) { - int highlightColor; + int highlightColor; dc = TkWinGetDrawableDC(butPtr->display, pixmap, &state); - if (butPtr->type == TYPE_LABEL) { - highlightColor = (int) Tk_3DBorderColor(butPtr->highlightBorder)->pixel; - } else { - highlightColor = (int) butPtr->highlightColorPtr->pixel; - } + if (butPtr->type == TYPE_LABEL) { + highlightColor = (int) Tk_3DBorderColor(butPtr->highlightBorder)->pixel; + } else { + highlightColor = (int) butPtr->highlightColorPtr->pixel; + } TkWinFillRect(dc, 0, 0, Tk_Width(tkwin), defaultWidth, highlightColor); TkWinFillRect(dc, 0, 0, defaultWidth, Tk_Height(tkwin), @@ -1457,7 +1457,7 @@ ButtonProc( * causes all buttons to fire once a second, so we need to make sure * that we are not dealing with the chromium life check. */ - if (wParam != 0 || lParam != 0) { + if (wParam != 0 || lParam != 0) { int code; Tcl_Interp *interp = butPtr->info.interp; |