From f51230610983e4d441cec806d6536af33e52ab6a Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Fri, 27 Feb 2026 03:35:54 +0100 Subject: [PATCH] prevent zooming when in orthographic perspective --- include/gui.hpp | 6 ------ src/input.cpp | 3 ++- src/main.cpp | 9 +++++++++ 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/include/gui.hpp b/include/gui.hpp index 2990be4..cad67cd 100644 --- a/include/gui.hpp +++ b/include/gui.hpp @@ -173,17 +173,11 @@ private: public: auto GetBackgroundColor() const -> Color; - auto HelpPopup() -> void; - auto DrawSavePresetPopup() -> void; - auto DrawMainMenu() -> void; - auto DrawPuzzleBoard() -> void; - auto DrawGraphOverlay(int fps, int ups) -> void; - auto Update() -> void; }; diff --git a/src/input.cpp b/src/input.cpp index c6a51a2..eea0261 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -115,7 +115,8 @@ auto InputHandler::CameraRotate() -> void { auto InputHandler::CameraStopRotate() -> void { camera_rotating = false; } auto InputHandler::CameraZoom() -> void { - if (!MouseInGraphPane() || IsKeyDown(KEY_LEFT_CONTROL)) { + if (!MouseInGraphPane() || IsKeyDown(KEY_LEFT_CONTROL) || + camera.projection == CAMERA_ORTHOGRAPHIC) { return; } diff --git a/src/main.cpp b/src/main.cpp index eecc650..9bdf6d8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -16,6 +16,15 @@ #endif // TODO: Click states in the graph to display them in the board +// TODO: Add some popups +// - Next move, goto target, goto worst: Notify that the graph needs to be +// populated +// - Clear graph: Notify that this will clear the visited states and move +// history +// - Reset state: Notify that this will reset the move count +// Remove the keybindings, as it's simpler to show the popups from the +// button? +// TODO: Set selection to 0, 0 when resetting the state // NOTE: Tracy uses a huge amount of memory. For longer testing disable Tracy.