From 923a89841e218634b53acddf0c1ff945aa739653 Mon Sep 17 00:00:00 2001 From: Lars Doucet Date: Wed, 22 Mar 2017 15:43:42 -0500 Subject: [PATCH] increase buffer size of TextLayout to roughly match the length of the text, saves buffer resizing later --- lime/text/TextLayout.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lime/text/TextLayout.hx b/lime/text/TextLayout.hx index 3a9352feb..99376ccc5 100644 --- a/lime/text/TextLayout.hx +++ b/lime/text/TextLayout.hx @@ -64,7 +64,7 @@ class TextLayout { if (__buffer == null) { - __buffer = Bytes.alloc (1); + __buffer = Bytes.alloc (text.length); //__buffer.endian = (System.endianness == BIG_ENDIAN ? "bigEndian" : "littleEndian"); }