mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-15 11:18:53 +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());
|
SDL::RenderCopy(t, static_cast<char>(info->GetAlpha() * 255), &charRect, &rect, info->GetAngle());
|
||||||
rect.x += static_cast<int>(glyph.Advance * scale);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user