diff --git a/source/core/rendering/render_info.cpp b/source/core/rendering/render_info.cpp index 79bb754..3cdab22 100644 --- a/source/core/rendering/render_info.cpp +++ b/source/core/rendering/render_info.cpp @@ -80,7 +80,8 @@ void RenderInfo::render() const { preset_name = Options::postfx_presets[static_cast(Options::current_postfx_preset)].name; } } - line += " | " + SHADER_NAME + " " + preset_name + (Options::video.supersampling ? " (ss)" : ""); + const bool SHOW_SS = Options::video.supersampling && !IS_CRTPI; + line += " | " + SHADER_NAME + " " + preset_name + (SHOW_SS ? " (ss)" : ""); } // Todo en lowercase diff --git a/source/game/ui/console.cpp b/source/game/ui/console.cpp index dff1a6e..fdb3b32 100644 --- a/source/game/ui/console.cpp +++ b/source/game/ui/console.cpp @@ -114,24 +114,24 @@ static const std::vector COMMANDS = { // SS [ON|OFF|SIZE] — Supersampling {.keyword = "SS", .execute = [](const std::vector& args) -> std::string { if (!args.empty() && args[0] == "SIZE") { - if (!Options::video.supersampling) { return "Supersampling OFF"; } + if (!Options::video.supersampling) { return "Supersampling is OFF: no texture"; } const auto [w, h] = Screen::get()->getSsTextureSize(); if (w == 0) { return "SS texture: not active"; } return "SS texture: " + std::to_string(w) + "x" + std::to_string(h); } if (args.empty()) { Screen::get()->toggleSupersampling(); - return std::string("Supersampling ") + (Options::video.supersampling ? "ON" : "OFF"); + return std::string("PostFX Supersampling ") + (Options::video.supersampling ? "ON" : "OFF"); } if (args[0] == "ON") { if (Options::video.supersampling) { return "Supersampling already ON"; } Screen::get()->toggleSupersampling(); - return "Supersampling ON"; + return "PostFX Supersampling ON"; } if (args[0] == "OFF") { if (!Options::video.supersampling) { return "Supersampling already OFF"; } Screen::get()->toggleSupersampling(); - return "Supersampling OFF"; + return "PostFX Supersampling OFF"; } return "Usage: SS [ON|OFF|SIZE]"; }}, diff --git a/source/game/ui/console.hpp b/source/game/ui/console.hpp index 843eff8..60bac8c 100644 --- a/source/game/ui/console.hpp +++ b/source/game/ui/console.hpp @@ -45,7 +45,7 @@ class Console { // Constantes de consola static constexpr std::string_view CONSOLE_NAME = "JDD Console"; static constexpr std::string_view CONSOLE_VERSION = "v1.0"; - static constexpr int MAX_LINE_CHARS = 30; + static constexpr int MAX_LINE_CHARS = 32; static constexpr int MAX_HISTORY_SIZE = 20; static constexpr float CURSOR_ON_TIME = 0.5F; static constexpr float CURSOR_OFF_TIME = 0.3F;