diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2018-03-23 23:11:35 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2018-03-23 23:11:35 +0000 |
| commit | a3a5a3d924a2c4103647b52d80458ffc62dbcd84 (patch) | |
| tree | 10ce7a7e26c0c43df401a23bd6a29c2af9a1f089 /src/drivers/Android | |
| parent | 5843a450bc27de3118808c1aece5accfab7b3ef0 (diff) | |
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
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); } |
