From 3864ed78e0b2822436c05cecb0a4b29696e5088e Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 14 Feb 2019 13:05:28 +0200 Subject: [PATCH] - fixed: offsets got lost in font's translated textures https://forum.zdoom.org/viewtopic.php?t=63667 --- src/v_font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v_font.cpp b/src/v_font.cpp index dffdc8884..dc71f1937 100644 --- a/src/v_font.cpp +++ b/src/v_font.cpp @@ -387,7 +387,7 @@ FFont::FFont (const char *name, const char *nametemplate, int first, int count, { Chars[i].OriginalPic = charLumps[i]; Chars[i].TranslatedPic = new FImageTexture(new FFontChar1 (charLumps[i]->GetImage()), ""); - Chars[i].TranslatedPic->Scale = charLumps[i]->Scale; + Chars[i].TranslatedPic->CopySize(charLumps[i]); Chars[i].TranslatedPic->SetUseType(ETextureType::FontChar); TexMan.AddTexture(Chars[i].TranslatedPic); } @@ -1559,7 +1559,7 @@ FSpecialFont::FSpecialFont (const char *name, int first, int count, FTexture **l if (!noTranslate) { Chars[i].TranslatedPic = new FImageTexture(new FFontChar1 (charlumps[i]->GetImage()), ""); - Chars[i].TranslatedPic->Scale = charlumps[i]->Scale; + Chars[i].TranslatedPic->CopySize(charlumps[i]); Chars[i].TranslatedPic->SetUseType(ETextureType::FontChar); TexMan.AddTexture(Chars[i].TranslatedPic); }