diff options
author | Treeki <treeki@gmail.com> | 2012-11-24 04:54:22 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-11-24 04:54:22 +0100 |
commit | ad5b71629c3438aba0ee559d2b888b5f5d59567f (patch) | |
tree | 1b23fd44e2ff9fd8f13f6fc15da194a5133c71fb | |
parent | 663494a33bd84f4c3915297d89a5265c69c0bcaa (diff) | |
download | kamek-ad5b71629c3438aba0ee559d2b888b5f5d59567f.tar.gz kamek-ad5b71629c3438aba0ee559d2b888b5f5d59567f.zip |
fixed shadow for pregame and pausemenu level number icons, hopefully
Diffstat (limited to '')
-rw-r--r-- | src/pregame.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
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!"); |