Skip to content

Commit

Permalink
Correction in TkWinDrawDottedRect.
Browse files Browse the repository at this point in the history
  • Loading branch information
csaba committed Aug 2, 2024
2 parents 9384e47 + 0b30a7f commit afa096f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions win/tkWinDraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1529,8 +1529,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 {
Expand Down

0 comments on commit afa096f

Please sign in to comment.