diff options
Diffstat (limited to 'src/drivers/Android/Fl_Android_Graphics_Driver.cxx')
| -rw-r--r-- | src/drivers/Android/Fl_Android_Graphics_Driver.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/drivers/Android/Fl_Android_Graphics_Driver.cxx b/src/drivers/Android/Fl_Android_Graphics_Driver.cxx index 46d638767..908b7f5bd 100644 --- a/src/drivers/Android/Fl_Android_Graphics_Driver.cxx +++ b/src/drivers/Android/Fl_Android_Graphics_Driver.cxx @@ -887,6 +887,23 @@ void Fl_Android_Graphics_Driver::pie_unscaled(float xi, float yi, float w, float } } +/** + * shortcut the closed circles so they use XDrawArc: + * 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; + + if (what==POLYGON) + fl_pie(llx, lly, w, h, 0.0, 360.0); + else + fl_arc(llx, lly, w, h, 0.0, 360.0); +} + + #if 0 // Code used to switch output to an off-screen window. See macros in |
