diff options
Diffstat (limited to 'src/drivers/Android')
| -rw-r--r-- | src/drivers/Android/Fl_Android_Graphics_Driver.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
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); } |
