From 648b5c4e6989cdec4c5fdfe1124f07c1e29f6c32 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 7 May 2025 15:56:48 -0400 Subject: [PATCH] Fixed #10780 --- core/src/mindustry/input/DesktopInput.java | 6 ++++++ core/src/mindustry/ui/fragments/MinimapFragment.java | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/src/mindustry/input/DesktopInput.java b/core/src/mindustry/input/DesktopInput.java index f0a41dc339..877b2c4cf3 100644 --- a/core/src/mindustry/input/DesktopInput.java +++ b/core/src/mindustry/input/DesktopInput.java @@ -57,6 +57,7 @@ public class DesktopInput extends InputHandler{ public long lastCtrlGroupSelectMillis; private float buildPlanMouseOffsetX, buildPlanMouseOffsetY; + private boolean changedCursor; boolean showHint(){ return ui.hudfrag.shown && Core.settings.getBool("hints") && selectPlans.isEmpty() && !player.dead() && @@ -546,8 +547,13 @@ public class DesktopInput extends InputHandler{ if(!Core.scene.hasMouse() && !ui.minimapfrag.shown()){ Core.graphics.cursor(cursorType); + changedCursor = cursorType != SystemCursor.arrow; }else{ cursorType = SystemCursor.arrow; + if(changedCursor){ + graphics.cursor(SystemCursor.arrow); + changedCursor = false; + } } } diff --git a/core/src/mindustry/ui/fragments/MinimapFragment.java b/core/src/mindustry/ui/fragments/MinimapFragment.java index 019f11c62e..d595b9beae 100644 --- a/core/src/mindustry/ui/fragments/MinimapFragment.java +++ b/core/src/mindustry/ui/fragments/MinimapFragment.java @@ -1,7 +1,6 @@ package mindustry.ui.fragments; import arc.*; -import arc.Graphics.Cursor.*; import arc.graphics.*; import arc.graphics.g2d.*; import arc.input.*; @@ -151,8 +150,5 @@ public class MinimapFragment{ } shown = !shown; - if(shown && Core.app.isDesktop()){ - Core.graphics.cursor(SystemCursor.arrow); - } } }