mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-11 21:21:47 +00:00
- Single image fonts do not use translations.
This commit is contained in:
parent
29344006a0
commit
b2b1ecc11f
2 changed files with 2 additions and 3 deletions
|
@ -152,7 +152,6 @@ FFont *V_GetFont(const char *name, const char *fontlumpname)
|
||||||
{
|
{
|
||||||
FFont *CreateSinglePicFont(const char *name);
|
FFont *CreateSinglePicFont(const char *name);
|
||||||
font = CreateSinglePicFont (name);
|
font = CreateSinglePicFont (name);
|
||||||
if (translationsLoaded) font->LoadTranslations();
|
|
||||||
return font;
|
return font;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -443,7 +443,7 @@ float FTexCoordInfo::RowOffset(float rowoffset) const
|
||||||
|
|
||||||
float FTexCoordInfo::TextureOffset(float textureoffset) const
|
float FTexCoordInfo::TextureOffset(float textureoffset) const
|
||||||
{
|
{
|
||||||
float scale = fabs(mScale.X);
|
float scale = fabsf(mScale.X);
|
||||||
if (scale == 1.f || mWorldPanning) return textureoffset;
|
if (scale == 1.f || mWorldPanning) return textureoffset;
|
||||||
else return textureoffset / scale;
|
else return textureoffset / scale;
|
||||||
}
|
}
|
||||||
|
@ -458,7 +458,7 @@ float FTexCoordInfo::TextureAdjustWidth() const
|
||||||
{
|
{
|
||||||
if (mWorldPanning)
|
if (mWorldPanning)
|
||||||
{
|
{
|
||||||
float tscale = fabs(mTempScale.X);
|
float tscale = fabsf(mTempScale.X);
|
||||||
if (tscale == 1.f) return (float)mRenderWidth;
|
if (tscale == 1.f) return (float)mRenderWidth;
|
||||||
else return mWidth / fabs(tscale);
|
else return mWidth / fabs(tscale);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue