- fixed font alignment in Blood

This commit is contained in:
Christoph Oelckers 2020-08-10 21:14:42 +02:00
parent ca740ad709
commit 3ba5ca46c9
2 changed files with 4 additions and 2 deletions

View file

@ -212,7 +212,7 @@ void CViewMap::sub_25C74(void)
nViewY = gViewY1S-16;
else
nViewY = gViewY0S+1;
viewDrawText(3, pBuffer, gViewX1S, nViewY, -128, 0, 2, 0, 256);
viewDrawText(3, pBuffer, gViewX1S /2, nViewY, -128, 0, 2, 0, 256);
#if 0 // needs to be generalized
if (gViewMap.bFollowMode)

View file

@ -224,7 +224,9 @@ void viewDrawText(int nFont, const char *pString, int x, int y, int nShade, int
//y += pFont->yoff;
if (position) x -= pFont->StringWidth(pString) / 2;
if (position == 1) x -= pFont->StringWidth(pString) / 2;
if (position == 2) x -= pFont->StringWidth(pString);
if (shadow)
{