diff --git a/source/core/rendering/screen.cpp b/source/core/rendering/screen.cpp index a45d731..effcf7e 100644 --- a/source/core/rendering/screen.cpp +++ b/source/core/rendering/screen.cpp @@ -396,28 +396,23 @@ void Screen::renderInfo() const { return; } - const auto white = static_cast(PaletteColor::WHITE); - //const auto black = static_cast(PaletteColor::BLACK); const int LINE_HEIGHT = text_->getCharacterSize() - 3; const int X = 0; int y = 0; // FPS const std::string FPS_TEXT = std::to_string(fps_.last_value) + " fps"; - //text_->writeColored(X + 1, y + 1, FPS_TEXT, black); - text_->writeColored(X, y, FPS_TEXT, white); + text_->write(X, y, FPS_TEXT); y += LINE_HEIGHT; // Zoom de la ventana const std::string ZOOM_TEXT = "zoom x" + std::to_string(Options::window.zoom); - //text_->writeColored(X + 1, y + 1, ZOOM_TEXT, black); - text_->writeColored(X, y, ZOOM_TEXT, white); + text_->write(X, y, ZOOM_TEXT); y += LINE_HEIGHT; // PostFX enabled const std::string POSTFX_TEXT = std::string("postfx ") + (Options::video.postfx ? "on" : "off"); - //text_->writeColored(X + 1, y + 1, POSTFX_TEXT, black); - text_->writeColored(X, y, POSTFX_TEXT, white); + text_->write(X, y, POSTFX_TEXT); y += LINE_HEIGHT; // PostFX preset @@ -426,14 +421,12 @@ void Screen::renderInfo() const { preset_name = Options::postfx_presets[static_cast(Options::current_postfx_preset)].name; } const std::string PRESET_TEXT = "preset " + preset_name; - //text_->writeColored(X + 1, y + 1, PRESET_TEXT, black); - text_->writeColored(X, y, PRESET_TEXT, white); + text_->write(X, y, PRESET_TEXT); y += LINE_HEIGHT; // Supersampling enabled const std::string SS_TEXT = std::string("ss ") + (Options::video.supersampling ? "on" : "off"); - //text_->writeColored(X + 1, y + 1, SS_TEXT, black); - text_->writeColored(X, y, SS_TEXT, white); + text_->write(X, y, SS_TEXT); } // Limpia la game_surface_