summaryrefslogtreecommitdiff
path: root/src/drivers/Android/Fl_Android_Graphics_Driver.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2018-03-17 21:30:46 +0000
committerMatthias Melcher <fltk@matthiasm.com>2018-03-17 21:30:46 +0000
commit0c8ae29b79c0391c9ff6ac806231e2dde890e55a (patch)
treed32497b2944e8de027cdb54a8362cd7958442ee8 /src/drivers/Android/Fl_Android_Graphics_Driver.cxx
parent6bf8fe983dbde42b10b1d864ab12077ba155685f (diff)
Android: added text clipping in all its uglyness.
Next: intersetcing a complex clipping region with a rectangle git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12769 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Android/Fl_Android_Graphics_Driver.cxx')
-rw-r--r--src/drivers/Android/Fl_Android_Graphics_Driver.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/Android/Fl_Android_Graphics_Driver.cxx b/src/drivers/Android/Fl_Android_Graphics_Driver.cxx
index 06f7ee046..fac5220bf 100644
--- a/src/drivers/Android/Fl_Android_Graphics_Driver.cxx
+++ b/src/drivers/Android/Fl_Android_Graphics_Driver.cxx
@@ -97,7 +97,7 @@ uint16_t Fl_Android_Graphics_Driver::make565(Fl_Color crgba)
void Fl_Android_Graphics_Driver::rectf_unscaled(float x, float y, float w, float h)
{
for (const auto &it: pClippingRegion.overlapping(Fl_Rect_Region(x, y, w, h))) {
- Fl_Rect_Region s(it->clipped_rect());
+ Fl_Rect_Region &s = it->clipped_rect();
rectf_unclipped(s.x(), s.y(), s.w(), s.h());
}
}
@@ -133,7 +133,7 @@ void Fl_Android_Graphics_Driver::xyline_unscaled(float x, float y, float x1)
x = x1;
}
for (const auto &it: pClippingRegion.overlapping(Fl_Rect_Region(x, y, w, 1))) {
- Fl_Rect_Region s(it->clipped_rect());
+ Fl_Rect_Region &s = it->clipped_rect();
xyline_unclipped(s.x(), s.y(), s.right());
}
}
@@ -164,7 +164,7 @@ void Fl_Android_Graphics_Driver::yxline_unscaled(float x, float y, float y1)
y = y1;
}
for (const auto &it: pClippingRegion.overlapping(Fl_Rect_Region(x, y, 1, h))) {
- Fl_Rect_Region s(it->clipped_rect());
+ Fl_Rect_Region &s = it->clipped_rect();
yxline_unclipped(s.x(), s.y(), s.bottom());
}
}