mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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]
This commit is contained in:
@ -342,10 +342,11 @@ void draw_circle(frontend *fe, int cx, int cy, int radius,
|
||||
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,
|
||||
|
Reference in New Issue
Block a user