提交 e139e9fe 编写于 作者: S serge-rider

Short string calc performance fix

上级 25a65f6e
......@@ -50,6 +50,7 @@ public class UITextUtils {
int w = gc.textExtent("...").x;
String text = t;
int l = text.length();
if (l > 500) l = 500; // Performance issue fix
int pivot = l / 2;
int s = pivot;
int e = pivot + 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册