summaryrefslogtreecommitdiff
path: root/src/drivers/Android/Fl_Android_Graphics_Driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/Android/Fl_Android_Graphics_Driver.cxx')
-rw-r--r--src/drivers/Android/Fl_Android_Graphics_Driver.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/drivers/Android/Fl_Android_Graphics_Driver.cxx b/src/drivers/Android/Fl_Android_Graphics_Driver.cxx
index 2a0b62cc8..b71f1adbb 100644
--- a/src/drivers/Android/Fl_Android_Graphics_Driver.cxx
+++ b/src/drivers/Android/Fl_Android_Graphics_Driver.cxx
@@ -54,10 +54,14 @@ static uint16_t make565(Fl_Color crgba)
}
void Fl_Android_Graphics_Driver::rectf_unscaled(float x, float y, float w, float h) {
- Fl_Android_Application::log_w("rectf %g %g %g %g", x, y, w, h);
- Fl_Rect_Region r(x, y, w, h);
- if (r.intersect_with(&pWindowRegion)) {
- rectf_unclipped(r.x(), r.y(), r.w(), r.h());
+ if (pWindowRegion) {
+ Fl_Android_Application::log_w("rectf %g %g %g %g", x, y, w, h);
+ Fl_Rect_Region r(x, y, w, h);
+ if (r.intersect_with(pWindowRegion)) {
+ rectf_unclipped(r.x(), r.y(), r.w(), r.h());
+ }
+ } else {
+ rectf_unclipped(x, y, w, h);
}
/*