From 44c9bb0a449af0b43b7e6913281a33faac6b8af7 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Thu, 22 Sep 2022 13:15:56 +0200 Subject: [PATCH] Prueba falsa de marcador transparente --- source/scoreboard.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/scoreboard.cpp b/source/scoreboard.cpp index e81800a..c1f1f01 100644 --- a/source/scoreboard.cpp +++ b/source/scoreboard.cpp @@ -41,13 +41,14 @@ void ScoreBoard::fillTexture() // Cambia el puntero del renderizador a la textura y la limpia SDL_SetRenderTarget(renderer, layer); SDL_SetRenderDrawColor(renderer, 0x00, 0x00, 0x00, 0xFF); + SDL_SetRenderDrawColor(renderer, 0, 171, 159, 255); SDL_RenderClear(renderer); // Escribe los textos - text->writeCentered(PLAY_AREA_CENTER_FIRST_QUARTER_X, 1, "-LIVES-"); - text->writeCentered(PLAY_AREA_CENTER_FIRST_QUARTER_X, 1 + text->getCharacterSize(), std::to_string(board->lives)); - text->writeCentered(PLAY_AREA_CENTER_THIRD_QUARTER_X, 1, "-DIAMONDS-"); - text->writeCentered(PLAY_AREA_CENTER_THIRD_QUARTER_X, 1 + text->getCharacterSize(), std::to_string(board->diamonds)); + text->writeDX(TXT_CENTER | TXT_SHADOW, PLAY_AREA_CENTER_FIRST_QUARTER_X, 8, "-LIVES-"); + text->writeDX(TXT_CENTER | TXT_SHADOW, PLAY_AREA_CENTER_FIRST_QUARTER_X, 8 + text->getCharacterSize(), std::to_string(board->lives)); + text->writeDX(TXT_CENTER | TXT_SHADOW, PLAY_AREA_CENTER_THIRD_QUARTER_X, 8, "-DIAMONDS-"); + text->writeDX(TXT_CENTER | TXT_SHADOW, PLAY_AREA_CENTER_THIRD_QUARTER_X, 8 + text->getCharacterSize(), std::to_string(board->diamonds)); // Vuelve a colocar el renderizador apuntando a la pantalla SDL_SetRenderTarget(renderer, nullptr);