diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-18 05:32:30 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-18 05:32:30 +0200 |
| commit | 689e04da905c1ceb8142975d3306c7b334eebbc9 (patch) | |
| tree | 84d51bc925adcded5daf38b543e6393cd2e50006 /main/camera.cpp | |
| parent | 40510b6e50ae9dd027c55e52c91433807ddf5c39 (diff) | |
a
Diffstat (limited to 'main/camera.cpp')
| -rw-r--r-- | main/camera.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/camera.cpp b/main/camera.cpp index 7086b562..c3a3b2f7 100644 --- a/main/camera.cpp +++ b/main/camera.cpp @@ -48,8 +48,8 @@ void app::update_window_scale(Vector2i sz) void app::recalc_cursor_tile() { - if (_cursor_pos) - _cursor_tile = pixel_to_tile(Vector2d(*_cursor_pos)); + if (_cursor_pixel) + _cursor_tile = pixel_to_tile(Vector2d(*_cursor_pixel)); else _cursor_tile = std::nullopt; } |
