From a682923ba0b18e4310df54a2c016c26637a592c9 Mon Sep 17 00:00:00 2001 From: csaba Date: Fri, 9 Aug 2024 09:21:23 +0000 Subject: [PATCH 1/2] Minor cosmetic fix in ttkWinTheme.c. --- win/ttkWinTheme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/ttkWinTheme.c b/win/ttkWinTheme.c index 4c930789a..68382f9dd 100644 --- a/win/ttkWinTheme.c +++ b/win/ttkWinTheme.c @@ -477,7 +477,7 @@ static void FillFocusElementDraw( FillFocusElement *focus = (FillFocusElement *)elementRecord; XColor *fillColor = Tk_GetColorFromObj(tkwin, focus->fillColorObj); GC gc = Tk_GCForColor(fillColor, d); - XFillRectangle(Tk_Display(tkwin), d, gc, b.x ,b.y, b.width, b.height); + XFillRectangle(Tk_Display(tkwin), d, gc, b.x, b.y, b.width, b.height); TkWinDrawDottedRect(Tk_Display(tkwin), d, -1, b.x, b.y, b.width, b.height); From 7846648c3109ea1304b803f82a2e728b3f9e9a18 Mon Sep 17 00:00:00 2001 From: csaba Date: Fri, 9 Aug 2024 12:24:04 +0000 Subject: [PATCH 2/2] Fixed typo in tkWinDraw.c. --- win/tkWinDraw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/tkWinDraw.c b/win/tkWinDraw.c index d2f4355bc..d126145a9 100644 --- a/win/tkWinDraw.c +++ b/win/tkWinDraw.c @@ -1520,7 +1520,7 @@ TkWinDrawDottedRect( dc = TkWinGetDrawableDC(disp, d, &state); lb.lbStyle = BS_SOLID; - lb.lbColor = pixel < 0 ? : RGB(0, 0, 0) : (COLORREF)pixel; + lb.lbColor = pixel < 0 ? RGB(0, 0, 0) : (COLORREF)pixel; lb.lbHatch = 0; if (pixel < 0) {