Skip to content

Commit f83109e

Browse files
author
Nicolas Gramlich
committed
Updated TextBreakExample.
1 parent f6ad59d commit f83109e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/org/andengine/examples/TextBreakExample.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import org.andengine.entity.scene.background.Background;
1010
import org.andengine.entity.text.Text;
1111
import org.andengine.entity.text.Text.TextOptions;
12+
import org.andengine.entity.text.Text.TextOptions.AutoWrap;
1213
import org.andengine.entity.util.FPSLogger;
1314
import org.andengine.opengl.font.Font;
1415
import org.andengine.opengl.font.FontFactory;
@@ -102,7 +103,7 @@ public Scene onCreateScene() {
102103
scene.setBackground(new Background(0.09804f, 0.6274f, 0.8784f));
103104

104105
final VertexBufferObjectManager vertexBufferObjectManager = this.getVertexBufferObjectManager();
105-
this.mText = new Text(50, 40, this.mFont, "", 1000, new TextOptions(true, AUTOWRAP_WIDTH, Text.LEADING_DEFAULT, HorizontalAlign.CENTER), vertexBufferObjectManager);
106+
this.mText = new Text(50, 40, this.mFont, "", 1000, new TextOptions(AutoWrap.LETTERS, AUTOWRAP_WIDTH, Text.LEADING_DEFAULT, HorizontalAlign.CENTER), vertexBufferObjectManager);
106107
scene.attachChild(this.mText);
107108

108109
this.mLeft = new Line(0, 0, 0, TextBreakExample.CAMERA_HEIGHT, this.getVertexBufferObjectManager());

0 commit comments

Comments
 (0)