From 0b30a7f936cd1cdf89363999bfc2d6137b8b10bf Mon Sep 17 00:00:00 2001 From: csaba Date: Fri, 2 Aug 2024 16:20:47 +0000 Subject: [PATCH] Correction in TkWinDrawDottedRect. --- win/tkWinDraw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win/tkWinDraw.c b/win/tkWinDraw.c index e72352cef..b329d54b7 100644 --- a/win/tkWinDraw.c +++ b/win/tkWinDraw.c @@ -1526,8 +1526,8 @@ TkWinDrawDottedRect( SelectObject(dc, GetStockObject(NULL_BRUSH)); if (widthMod2 == 0 && heightMod2 == 0) { - MoveToEx(dc, x+1, y, NULL); LineTo(dc, x2, y); /* N */ - MoveToEx(dc, x+2, y2, NULL); LineTo(dc, x2, y2+1); /* S */ + MoveToEx(dc, x+1, y, NULL); LineTo(dc, x2, y); /* N */ + MoveToEx(dc, x+2, y2, NULL); LineTo(dc, x2+1, y2); /* S */ MoveToEx(dc, x, y+2, NULL); LineTo(dc, x, y2+1); /* W */ MoveToEx(dc, x2, y+1, NULL); LineTo(dc, x2, y2); /* E */ } else {