From 3e9716901b833062820e7a0c616fdf828ec3902a Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Mon, 2 Jun 2025 11:46:22 +0200 Subject: [PATCH] modificada la lletra de la info de debug --- source/screen.cpp | 4 ++-- source/utils.cpp | 1 + source/utils.h | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/screen.cpp b/source/screen.cpp index f5d5582..2bbf967 100644 --- a/source/screen.cpp +++ b/source/screen.cpp @@ -221,10 +221,10 @@ void Screen::renderInfo() { // FPS const std::string FPS_TEXT = std::to_string(fps_.lastValue) + " FPS"; - debug_info_.text->writeColored(param.game.width - debug_info_.text->lenght(FPS_TEXT), 0, FPS_TEXT, ORANGE_SOFT_COLOR); + debug_info_.text->writeDX(TEXT_COLOR | TEXT_SHADOW, param.game.width - debug_info_.text->lenght(FPS_TEXT), 0, FPS_TEXT, 1, ORANGE_SOFT_COLOR, 1, ORANGE_SHADOW_COLOR); // Resolution - debug_info_.text->writeColored(0, 0, options.video.info, ORANGE_SOFT_COLOR); + debug_info_.text->writeDX(TEXT_COLOR | TEXT_SHADOW, 0, 0, options.video.info, 1, ORANGE_SOFT_COLOR, 1, ORANGE_SHADOW_COLOR); } } #endif diff --git a/source/utils.cpp b/source/utils.cpp index a38e507..a3170b9 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -27,6 +27,7 @@ const Color FLASH_COLOR = Color(0XFF, 0XFF, 0XFF); const Color FADE_COLOR = Color(0X27, 0X27, 0X36); const Color ORANGE_COLOR = Color(0XFF, 0X7A, 0X00); const Color ORANGE_SOFT_COLOR = Color(0XFF, 0XA0, 0X33); +const Color ORANGE_SHADOW_COLOR = ORANGE_SOFT_COLOR.darken(100); const Color GREEN_COLOR = Color(0X5B, 0XEC, 0X95); const Color BLUE_SKY_COLOR = Color(0X02, 0X88, 0XD1); const Color PINK_SKY_COLOR = Color(0XFF, 0X6B, 0X97); diff --git a/source/utils.h b/source/utils.h index 70616e6..63e81e1 100644 --- a/source/utils.h +++ b/source/utils.h @@ -122,6 +122,7 @@ extern const Color FLASH_COLOR; extern const Color FADE_COLOR; extern const Color ORANGE_COLOR; extern const Color ORANGE_SOFT_COLOR; +extern const Color ORANGE_SHADOW_COLOR; extern const Color GREEN_COLOR; extern const Color BLUE_SKY_COLOR; extern const Color PINK_SKY_COLOR;