From fb0ff799881352d7b1b609f532fab8cb90fce09e Mon Sep 17 00:00:00 2001 From: Yunji Park Date: Thu, 30 May 2013 17:37:37 +0900 Subject: [PATCH] Modified to draw sliding text Change-Id: Ie696504cb66a46a26f7a52233d9b00f41a2a484c --- src/graphics/text/FGrp_TextTextObject.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/graphics/text/FGrp_TextTextObject.cpp b/src/graphics/text/FGrp_TextTextObject.cpp index da0474a..c921346 100644 --- a/src/graphics/text/FGrp_TextTextObject.cpp +++ b/src/graphics/text/FGrp_TextTextObject.cpp @@ -743,10 +743,11 @@ TextObject::Compose(void) TextLine* pTextLine = __pTextColumn->GetTextLine(0); if (pTextLine != null) { + FloatRectangle lineBounds = pTextLine->GetBoundsF(); int lineLength = pTextLine->GetTextLength(); int totalLength = __pCompositeText->GetTextLength(); - if (lineLength < totalLength) + if (lineLength < totalLength || __rect.width < lineBounds.width) { __isActionOn = true; __pTextColumn->SetSlidingPosition(0.0f); -- 2.7.4