From e6cf4ce71e44b9515f993cb7361c9c4274ddff96 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 26 Jan 2003 02:56:06 +0000 Subject: [PATCH] fix DrawExtraPixelsLeft/Right --- stepmania/src/Font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Font.cpp b/stepmania/src/Font.cpp index 99b31bde10..0f8698c3bf 100644 --- a/stepmania/src/Font.cpp +++ b/stepmania/src/Font.cpp @@ -179,8 +179,8 @@ void FontPage::SetExtraPixels(int DrawExtraPixelsLeft, int DrawExtraPixelsRight) float ExtraRight = min( float(DrawExtraPixelsRight), (iFrameWidth-iCharWidth)/2.0f ); /* Move left and expand right. */ - glyphs[i].rect.left -= ExtraLeft / m_pTexture->GetTextureWidth(); - glyphs[i].rect.right += ExtraRight / m_pTexture->GetTextureWidth(); + glyphs[i].rect.left -= ExtraLeft / m_pTexture->GetSourceWidth(); + glyphs[i].rect.right += ExtraRight / m_pTexture->GetSourceWidth(); glyphs[i].hshift -= ExtraLeft; glyphs[i].width += ExtraLeft + ExtraRight; }