From f9410748f197ba52bc5b5934c20b9ab3b5525820 Mon Sep 17 00:00:00 2001 From: Don Honerbrink Date: Tue, 10 Feb 2015 22:00:16 +0000 Subject: [PATCH] Text.cpp edited online with Bitbucket --- RetroFE/Source/Graphics/Component/Text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RetroFE/Source/Graphics/Component/Text.cpp b/RetroFE/Source/Graphics/Component/Text.cpp index cdeeb0a..f6e3400 100644 --- a/RetroFE/Source/Graphics/Component/Text.cpp +++ b/RetroFE/Source/Graphics/Component/Text.cpp @@ -108,7 +108,7 @@ void Text::Draw() SDL::RenderCopy(t, static_cast(info->GetAlpha() * 255), &charRect, &rect, info->GetAngle()); rect.x += static_cast(glyph.Advance * scale); - if(static_cast(rect.x) - xOrigin) > info->GetMaxWidth()) + if((static_cast(rect.x) - xOrigin) > info->GetMaxWidth()) { break; }