diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-17 17:28:10 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-17 17:28:10 +0200 |
commit | 5dd1ade46d1c21b840cfdd4acfaf3012a2955f7c (patch) | |
tree | fe2362520ece1cb1ec94f0fd9d903c4543a5297d /main/app.cpp | |
parent | bcb2d0a3f22b1bee1b7d1ab64ae28865d58cc358 (diff) |
a
Diffstat (limited to 'main/app.cpp')
-rw-r--r-- | main/app.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/main/app.cpp b/main/app.cpp index d432c716..9fd9664d 100644 --- a/main/app.cpp +++ b/main/app.cpp @@ -88,19 +88,6 @@ void app::mouseMoveEvent(Platform::Sdl2Application::MouseMoveEvent& event) recalc_cursor_tile(); } -void app::recalc_cursor_tile() -{ - if (_cursor_pos) - { - constexpr Vector2 base_offset = - tile_shader::project({(float)TILE_MAX_DIM*BASE_X*TILE_SIZE[0], - (float)TILE_MAX_DIM*BASE_Y*TILE_SIZE[1], 0}); - _cursor_tile = pixel_to_tile(Vector2(*_cursor_pos) - base_offset); - } - else - _cursor_tile = std::nullopt; -} - void app::mouseScrollEvent(Platform::Sdl2Application::MouseScrollEvent& event) { if (_imgui.handleMouseScrollEvent(event)) |