From 9f8ca52cd75584826b006ffdd44c3bf8afab8426 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 26 Oct 2022 14:18:32 +0200 Subject: reformat --- editor/events.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'editor') 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(); -- cgit v1.2.3