- 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

@ -733,10 +733,6 @@ bool DCanvas::ParseDrawTextureTags(FTexture *img, double x, double y, DWORD tag,
case DTA_Translation:
parms->remap = ListGetTranslation(tags);
if (parms->remap != NULL && parms->remap->Inactive)
{ // If it's inactive, pretend we were passed NULL instead.
parms->remap = NULL;
}
break;
case DTA_ColorOverlay:
@ -911,6 +907,11 @@ bool DCanvas::ParseDrawTextureTags(FTexture *img, double x, double y, DWORD tag,
}
ListEnd(tags);
if (parms->remap != nullptr && parms->remap->Inactive)
{ // If it's inactive, pretend we were passed NULL instead.
parms->remap = nullptr;
}
if (parms->uclip >= parms->dclip || parms->lclip >= parms->rclip)
{
return false;