Text.cpp edited online with Bitbucket

This commit is contained in:
Don Honerbrink 2015-02-10 21:44:04 +00:00
parent 0725ef60dc
commit 9baac1bac2

View File

@ -108,7 +108,7 @@ void Text::Draw()
SDL::RenderCopy(t, static_cast<char>(info->GetAlpha() * 255), &charRect, &rect, info->GetAngle());
rect.x += static_cast<int>(glyph.Advance * scale);
if(static_cast<float>(rect.x) - xOrigin) > info->getMaxWidth())
if(static_cast<float>(rect.x) - xOrigin) > info->GetMaxWidth())
{
break;
}