ref: a0d0c7e795268068642a315227a8e2f754d6968a
parent: 6e79ff9df5cd3429e6b75a43d61d760cbbe00939
author: Jacob Nevins <jacobn@chiark.greenend.org.uk>
date: Sat Jun 25 09:24:19 EDT 2005
The AngleArc() function that was being used to draw circles on Windows turns out to be unsupported on the Win9x/Me series. Use Arc() instead (tested on Win98 and Win2K). [originally from svn r6012]
--- a/windows.c
+++ b/windows.c
@@ -342,10 +342,11 @@
SelectObject(fe->hdc_bm, oldpen);
} else {
HPEN oldpen = SelectObject(fe->hdc_bm, fe->pens[colour]);
- MoveToEx(fe->hdc_bm, cx + radius, cy, NULL);
- AngleArc(fe->hdc_bm, cx, cy, radius, 0.0F, 360.0F);
+ Arc(fe->hdc_bm, cx - radius, cy - radius,
+ cx + radius + 1, cy + radius + 1,
+ cx - radius, cy, cx - radius, cy);
SelectObject(fe->hdc_bm, oldpen);
- }
+ }
}
void draw_polygon(frontend *fe, int *coords, int npoints,