aboutsummaryrefslogtreecommitdiff
path: root/src/screens/infoScreen.c
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-12-22 17:01:37 -0700
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-12-22 17:01:37 -0700
commitaf1c26fa866a290eeace75fdf4e0bac8b43e09c5 (patch)
treea2c568cc4b06363b4e4aca6aa0017f122358ed5b /src/screens/infoScreen.c
parent5b7e4668d549237e02dfe0580918c48b6d3b5c2d (diff)
Added zoom speed
Diffstat (limited to 'src/screens/infoScreen.c')
-rw-r--r--src/screens/infoScreen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screens/infoScreen.c b/src/screens/infoScreen.c
index ca968d2..745ea03 100644
--- a/src/screens/infoScreen.c
+++ b/src/screens/infoScreen.c
@@ -195,7 +195,7 @@ void updateInfoScreen(Game * game) {
infoScreenResetEntity(infoScreen);
// Change distance.
- infoScreen->distances[currentEntity] += GetMouseWheelMove();
+ infoScreen->distances[currentEntity] += -GetMouseWheelMove() * game->settings.previewZoomSpeed;
// Handling hidding cursor and shit.
if (IsMouseButtonPressed(MOUSE_RIGHT_BUTTON)) {