From a3a5a3d924a2c4103647b52d80458ffc62dbcd84 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 23 Mar 2018 23:11:35 +0000 Subject: 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 --- src/drivers/Android/Fl_Android_Graphics_Driver.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/drivers/Android/Fl_Android_Graphics_Driver.cxx') diff --git a/src/drivers/Android/Fl_Android_Graphics_Driver.cxx b/src/drivers/Android/Fl_Android_Graphics_Driver.cxx index 908b7f5bd..d06186268 100644 --- a/src/drivers/Android/Fl_Android_Graphics_Driver.cxx +++ b/src/drivers/Android/Fl_Android_Graphics_Driver.cxx @@ -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); } -- cgit v1.2.3