From 02d195ca0b3f1fb2ca884d1e84512400d60ebd06 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 30 Apr 2022 12:02:05 +0200 Subject: [PATCH] new screen option sm::SHOWCURSOR --- control.cpp | 1 + graph.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/control.cpp b/control.cpp index 80f96701..8c312d85 100644 --- a/control.cpp +++ b/control.cpp @@ -736,6 +736,7 @@ EX void mainloopiter() { mousepan = cmode & sm::NORMAL; if((cmode & (sm::DRAW | sm::MAP)) && !hiliteclick) mousepan = true; + if(cmode & sm::SHOWCURSOR) mousepan = false; mousepan = mousepan && mouseaiming(false) && mouseaim_sensitivity; if(mousepan != oldmousepan) { oldmousepan = mousepan; diff --git a/graph.cpp b/graph.cpp index a1aa8003..9d992a55 100644 --- a/graph.cpp +++ b/graph.cpp @@ -5489,6 +5489,7 @@ namespace sm { static const int EXPANSION = (1<<16); static const int HEXEDIT = (1<<17); static const int VR_MENU = (1<<18); // always show the menu in VR + static const int SHOWCURSOR = (1<<19); // despite MAP/DRAW always show the cursor, no panning } #endif