From c87d6825083dbc1aec2a36700c201d2cb18e8580 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Sun, 22 Mar 2026 07:54:54 +0100 Subject: [PATCH] sombra als fps --- source/core/rendering/screen.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/core/rendering/screen.cpp b/source/core/rendering/screen.cpp index 7b48e49..20ddfc6 100644 --- a/source/core/rendering/screen.cpp +++ b/source/core/rendering/screen.cpp @@ -396,10 +396,14 @@ void Screen::renderInfo() const { if (show_debug_info_ && (Resource::Cache::get() != nullptr)) { auto text = Resource::Cache::get()->getText("smb2"); auto color = static_cast(PaletteColor::YELLOW); + auto shadow = static_cast(PaletteColor::BLACK); - // FPS + // FPS con sombra 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); + const int FPS_X = Options::game.width - text->length(FPS_TEXT) - 1; + + text->writeColored(FPS_X + 1, 1, FPS_TEXT, shadow); + text->writeColored(FPS_X, 0, FPS_TEXT, color); } }