From ad5b71629c3438aba0ee559d2b888b5f5d59567f Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 24 Nov 2012 04:54:22 +0100 Subject: fixed shadow for pregame and pausemenu level number icons, hopefully --- src/pregame.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pregame.cpp b/src/pregame.cpp index 0d8a78f..6ac04de 100644 --- a/src/pregame.cpp +++ b/src/pregame.cpp @@ -81,9 +81,19 @@ void LoadPregameStyleNameAndNumber(m2d::EmbedLayout_c *layout) { wcscpy(levelNumber, L"World "); getNewerLevelNumberString(level->displayWorld, level->displayLevel, &levelNumber[6]); - LevelNumShadow->SetString(levelNumber); LevelNum->SetString(levelNumber); + // make the picture shadowy + int sidx = 0; + while (levelNumber[sidx]) { + if (levelNumber[sidx] == 11) { + levelNumber[sidx+1] = 0x200 | (levelNumber[sidx+1]&0xFF); + sidx += 2; + } + sidx++; + } + LevelNumShadow->SetString(levelNumber); + } else { LevelNameShadow->SetString(L"Not found in LevelInfo!"); LevelName->SetString(L"Not found in LevelInfo!"); -- cgit v1.2.3