summaryrefslogtreecommitdiffhomepage
path: root/editor/events.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-26 14:18:32 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-26 14:18:32 +0200
commit9f8ca52cd75584826b006ffdd44c3bf8afab8426 (patch)
treec8d3e5c8aedcb564dcbb65919c281224a73830ec /editor/events.cpp
parent6989441da856f9f88817449ac073319d6b6a5f56 (diff)
reformat
Diffstat (limited to 'editor/events.cpp')
-rw-r--r--editor/events.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/editor/events.cpp b/editor/events.cpp
index cd846a96..74ee92ec 100644
--- a/editor/events.cpp
+++ b/editor/events.cpp
@@ -49,9 +49,10 @@ void app::on_mouse_up_down(const mouse_button_event& event, bool is_down) noexce
accessor(Button, button)
} e = {event.position, Button(event.button)};
- if (!(cursor.in_imgui = is_down
- ? _imgui.handleMousePressEvent(e)
- : _imgui.handleMouseReleaseEvent(e)))
+ if (cursor.in_imgui = is_down
+ ? _imgui.handleMousePressEvent(e)
+ : _imgui.handleMouseReleaseEvent(e);
+ !cursor.in_imgui)
{
cursor.pixel = event.position;
recalc_cursor_tile();