Android: Using floating point calls to make thigs look slightly better.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12791 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2018-03-23 23:11:35 +00:00
parent 5843a450bc
commit a3a5a3d924

View File

@ -892,15 +892,15 @@ void Fl_Android_Graphics_Driver::pie_unscaled(float xi, float yi, float w, float
* FIXME: these do not draw rotated ellipses correctly!
* */
void Fl_Android_Graphics_Driver::ellipse_unscaled(double xt, double yt, double rx, double ry) {
int llx = (int)rint(xt-rx);
int w = (int)rint(xt+rx)-llx;
int lly = (int)rint(yt-ry);
int h = (int)rint(yt+ry)-lly;
double llx = xt-rx;
double w = xt+rx-llx;
double lly = yt-ry;
double h = yt+ry-lly;
if (what==POLYGON)
fl_pie(llx, lly, w, h, 0.0, 360.0);
pie_unscaled(llx, lly, w, h, 0.0, 360.0);
else
fl_arc(llx, lly, w, h, 0.0, 360.0);
arc_unscaled(llx, lly, w, h, 0.0, 360.0);
}