- use DrawChar to draw font characters instead of calling DrawTexture directly.
Mostly done to remove uses of DTA_Translation.
This commit is contained in:
parent
6dea3eef8e
commit
d50e52ea59
3 changed files with 13 additions and 18 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue