toggle FPS mentres jugues

This commit is contained in:
2025-11-22 11:38:28 +01:00
parent fda8ff3f65
commit 723ab3d800
2 changed files with 4 additions and 3 deletions

View File

@@ -348,9 +348,6 @@ void Screen::renderInfo() {
// FPS // FPS
const std::string FPS_TEXT = std::to_string(fps_.last_value) + " 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); text->writeColored(Options::game.width - text->length(FPS_TEXT), 0, FPS_TEXT, color);
// Resolution
text->writeColored(0, 0, info_resolution_, color);
} }
} }

View File

@@ -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"); Notifier::get()->show({"ACHIEVEMENT UNLOCKED!", "I LIKE MY MULTICOLOURED FRIENDS"}, Notifier::Style::CHEEVO, -1, false, "F7");
break; break;
case SDLK_0:
Screen::get()->toggleDebugInfo();
break;
default: default:
break; break;
} }