From ec846a3e63b97f4b68e64754ba7328c12ec4634e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 1 Aug 2020 20:07:32 +0200 Subject: [PATCH] - fixed shadows on Blood's text. --- source/blood/src/view.cpp | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/source/blood/src/view.cpp b/source/blood/src/view.cpp index 777a417f2..b8b738a6f 100644 --- a/source/blood/src/view.cpp +++ b/source/blood/src/view.cpp @@ -1011,28 +1011,11 @@ void viewDrawText(int nFont, const char *pString, int x, int y, int nShade, int if (shadow) { - DrawText(twod, pFont, CR_UNDEFINED, x, y, pString, DTA_FullscreenScale, 3, DTA_VirtualWidth, 320, DTA_VirtualHeight, 200, DTA_Color, 0, DTA_Alpha, 0.5, TAG_DONE); + DrawText(twod, pFont, CR_UNDEFINED, x+1, y+1, pString, DTA_FullscreenScale, 3, DTA_VirtualWidth, 320, DTA_VirtualHeight, 200, DTA_Color, 0xff000000, DTA_Alpha, 0.5, TAG_DONE); } DrawText(twod, pFont, CR_UNDEFINED, x, y, pString, DTA_FullscreenScale, 3, DTA_VirtualWidth, 320, DTA_VirtualHeight, 200, DTA_TranslationIndex, TRANSLATION(Translation_Remap, nPalette), DTA_Color, shadeToLight(nShade), TAG_DONE); - - // This is just for position comparison - const char *s = pString; - while (*s) - { - int nTile = 'A' - 32 + 4096 + nFont*96; - //int nTile = ((*s-' ')&127) + '; - if (tilesiz[nTile].x && tilesiz[nTile].y) - { - if (shadow) - { - rotatesprite_fs_alpha((x+1)<<16, (y+1)<<16, 65536, 0, nTile, 127, nPalette, 26|nStat, alpha); - } - rotatesprite_fs_alpha(x<<16, y<<16, 65536, 0, nTile, nShade, nPalette, 26|nStat, alpha); - x += pFont->GetDefaultKerning(); - } - s++; - } + } // for the screen border