mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-13 02:08:52 +01:00
Text.cpp edited online with Bitbucket
This commit is contained in:
parent
9baac1bac2
commit
f9410748f1
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user