summaryrefslogtreecommitdiffstats
path: root/libs/ui/Region.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ui/Region.cpp')
-rw-r--r--libs/ui/Region.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ui/Region.cpp b/libs/ui/Region.cpp
index 06ab3d0..91fa216 100644
--- a/libs/ui/Region.cpp
+++ b/libs/ui/Region.cpp
@@ -260,6 +260,12 @@ void Region::set(int32_t w, int32_t h)
mStorage.add(Rect(w, h));
}
+void Region::set(uint32_t w, uint32_t h)
+{
+ mStorage.clear();
+ mStorage.add(Rect(w, h));
+}
+
bool Region::isTriviallyEqual(const Region& region) const {
return begin() == region.begin();
}