increase buffer size of TextLayout to roughly match the length of the text, saves buffer resizing later
This commit is contained in:
committed by
Joshua Granick
parent
29e029203a
commit
923a89841e
@@ -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");
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user