- 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
|
|
@ -443,7 +443,7 @@ float FTexCoordInfo::RowOffset(float rowoffset) const
|
|||
|
||||
float FTexCoordInfo::TextureOffset(float textureoffset) const
|
||||
{
|
||||
float scale = fabs(mScale.X);
|
||||
float scale = fabsf(mScale.X);
|
||||
if (scale == 1.f || mWorldPanning) return textureoffset;
|
||||
else return textureoffset / scale;
|
||||
}
|
||||
|
|
@ -458,7 +458,7 @@ float FTexCoordInfo::TextureAdjustWidth() const
|
|||
{
|
||||
if (mWorldPanning)
|
||||
{
|
||||
float tscale = fabs(mTempScale.X);
|
||||
float tscale = fabsf(mTempScale.X);
|
||||
if (tscale == 1.f) return (float)mRenderWidth;
|
||||
else return mWidth / fabs(tscale);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue