From 832039a2113e73fdb185861d90674db1cc12b3b5 Mon Sep 17 00:00:00 2001 From: quou Date: Tue, 31 Dec 2024 23:58:20 +1100 Subject: fix modal position check --- ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui.cpp') 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]; } -- cgit v1.2.3-54-g00ecf