summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-31 23:58:20 +1100
committerquou <quou@disroot.org>2024-12-31 23:58:20 +1100
commit832039a2113e73fdb185861d90674db1cc12b3b5 (patch)
treee9572d76921de4240819bb8e48b4e311e68e8008
parent92692cccfe0524ba7cece97e495e8c62a57b1c23 (diff)
fix modal position check
-rw-r--r--ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.cpp b/ui.cpp
index 8a292c7..7b5128b 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -947,7 +947,7 @@ UI::Modal::Modal(UI* ui, Element* parent, const char* text):
UI::Rect UI::Modal::layout(const Rect& avail) {
Rect r = avail;
- if (pos[0] && pos[1]) {
+ if (pos[0] || pos[1]) {
r.x = pos[0];
r.y = pos[1];
}