summaryrefslogtreecommitdiffstats
path: root/win/tkWinDraw.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-17 13:02:57 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-17 13:02:57 (GMT)
commita983245e41399dd76602e12f17bc3170de207680 (patch)
tree259f9d0d5c7d566b56ccbd47b46ed7d05ac528c5 /win/tkWinDraw.c
parentc7155c6da59086934fe2e1567f5c3b0335a5b693 (diff)
downloadtk-a983245e41399dd76602e12f17bc3170de207680.zip
tk-a983245e41399dd76602e12f17bc3170de207680.tar.gz
tk-a983245e41399dd76602e12f17bc3170de207680.tar.bz2
Move scrollbar sanity checks from platform-code to generic. Fix indenting in win/* files
Diffstat (limited to 'win/tkWinDraw.c')
-rw-r--r--win/tkWinDraw.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/win/tkWinDraw.c b/win/tkWinDraw.c
index 7943aa3..1022be4 100644
--- a/win/tkWinDraw.c
+++ b/win/tkWinDraw.c
@@ -761,7 +761,7 @@ MakeAndStrokePath(
POINT *winPoints,
int npoints,
WinDrawFunc func) /* Name of the Windows GDI drawing function:
- this is either Polyline or Polygon. */
+ this is either Polyline or Polygon. */
{
BeginPath(dc);
func(dc, winPoints, (int)npoints);
@@ -772,15 +772,15 @@ MakeAndStrokePath(
* path is closed.
*/
if (func == Polyline) {
- if ((winPoints[0].x == winPoints[npoints-1].x) &&
- (winPoints[0].y == winPoints[npoints-1].y)) {
- CloseFigure(dc);
- }
- EndPath(dc);
- StrokePath(dc);
+ if ((winPoints[0].x == winPoints[npoints-1].x) &&
+ (winPoints[0].y == winPoints[npoints-1].y)) {
+ CloseFigure(dc);
+ }
+ EndPath(dc);
+ StrokePath(dc);
} else {
- EndPath(dc);
- StrokeAndFillPath(dc);
+ EndPath(dc);
+ StrokeAndFillPath(dc);
}
}
@@ -879,7 +879,7 @@ RenderObject(
SetPolyFillMode(dcMem, (gc->fill_rule == EvenOddRule) ? ALTERNATE
: WINDING);
oldMemBrush = (HBRUSH)SelectObject(dcMem, CreateSolidBrush(gc->foreground));
- MakeAndStrokePath(dcMem, winPoints, npoints, func);
+ MakeAndStrokePath(dcMem, winPoints, npoints, func);
BitBlt(dc, rect.left, rect.top, width, height, dcMem, 0, 0, COPYFG);
/*
@@ -891,7 +891,7 @@ RenderObject(
if (gc->fill_style == FillOpaqueStippled) {
DeleteObject(SelectObject(dcMem,
CreateSolidBrush(gc->background)));
- MakeAndStrokePath(dcMem, winPoints, npoints, func);
+ MakeAndStrokePath(dcMem, winPoints, npoints, func);
BitBlt(dc, rect.left, rect.top, width, height, dcMem, 0, 0,
COPYBG);
}
@@ -907,7 +907,7 @@ RenderObject(
SetPolyFillMode(dc, (gc->fill_rule == EvenOddRule) ? ALTERNATE
: WINDING);
- MakeAndStrokePath(dc, winPoints, npoints, func);
+ MakeAndStrokePath(dc, winPoints, npoints, func);
SelectObject(dc, oldPen);
}
DeleteObject(SelectObject(dc, oldBrush));