From 723ab3d800437d782d1f54916aa99c0a84ae051d Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Sat, 22 Nov 2025 11:38:28 +0100 Subject: [PATCH] toggle FPS mentres jugues --- source/core/rendering/screen.cpp | 3 --- source/game/scenes/game.cpp | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source/core/rendering/screen.cpp b/source/core/rendering/screen.cpp index 5e63c6e..31e0176 100644 --- a/source/core/rendering/screen.cpp +++ b/source/core/rendering/screen.cpp @@ -348,9 +348,6 @@ void Screen::renderInfo() { // FPS const std::string FPS_TEXT = std::to_string(fps_.last_value) + " FPS"; text->writeColored(Options::game.width - text->length(FPS_TEXT), 0, FPS_TEXT, color); - - // Resolution - text->writeColored(0, 0, info_resolution_, color); } } diff --git a/source/game/scenes/game.cpp b/source/game/scenes/game.cpp index 45496d3..e48e5b0 100644 --- a/source/game/scenes/game.cpp +++ b/source/game/scenes/game.cpp @@ -462,6 +462,10 @@ void Game::handleDebugEvents(const SDL_Event& event) { Notifier::get()->show({"ACHIEVEMENT UNLOCKED!", "I LIKE MY MULTICOLOURED FRIENDS"}, Notifier::Style::CHEEVO, -1, false, "F7"); break; + case SDLK_0: + Screen::get()->toggleDebugInfo(); + break; + default: break; }