diff --git a/firmware/common/ui.cpp b/firmware/common/ui.cpp index d6d881d6..5b0f55b2 100644 --- a/firmware/common/ui.cpp +++ b/firmware/common/ui.cpp @@ -42,6 +42,8 @@ Rect Rect::intersect(const Rect& o) const { } } +// TODO: This violates the principle of least surprise! +// This does a union, but that might not be obvious from "+=" syntax. Rect& Rect::operator+=(const Rect& p) { if( is_empty() ) { *this = p;