- use DrawChar to draw font characters instead of calling DrawTexture directly.

Mostly done to remove uses of DTA_Translation.
This commit is contained in:
Christoph Oelckers 2017-02-04 22:50:23 +01:00
commit d50e52ea59
3 changed files with 13 additions and 18 deletions

View file

@ -722,10 +722,10 @@ void WI_drawBackground()
static int WI_DrawCharPatch (FFont *font, int charcode, int x, int y, EColorRange translation=CR_UNTRANSLATED, bool nomove=false)
{
int width;
screen->DrawTexture(font->GetChar(charcode, &width), x, y,
font->GetChar(charcode, &width);
screen->DrawChar(font, translation, x, y, charcode,
nomove ? DTA_CleanNoMove : DTA_Clean, true,
DTA_ShadowAlpha, (gameinfo.gametype & GAME_DoomChex) ? 0 : 0.5,
DTA_Translation, font->GetColorTranslation(translation),
TAG_DONE);
return x - width;
}