From f45eac993a2031f998f93a3db4b4b769cb7230eb Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Thu, 29 Dec 2022 22:18:35 -0800 Subject: [PATCH] use semantically clearer div rather than bit shift --- library/modules/Gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/modules/Gui.cpp b/library/modules/Gui.cpp index 83ca8c2e9..c436a0ca5 100644 --- a/library/modules/Gui.cpp +++ b/library/modules/Gui.cpp @@ -2153,7 +2153,7 @@ df::coord Gui::getMousePos() if (gps && gps->precise_mouse_x > -1) { pos = getViewportPos(); if (Screen::inGraphicsMode()) { - int32_t map_tile_pixels = gps->viewport_zoom_factor >> 2; + int32_t map_tile_pixels = gps->viewport_zoom_factor / 4; pos.x += gps->precise_mouse_x / map_tile_pixels; pos.y += gps->precise_mouse_y / map_tile_pixels; } else {