浏览代码

fix select multiline text, handle wrong positioned

/siyaoH-1.17-fixAndroid
siyao 3 年前
当前提交
ec9de2ce
共有 3 个文件被更改,包括 1 次插入2 次删除
  1. 3
      engine/src/lib/ui/text/paragraph.cc

3
engine/src/lib/ui/text/paragraph.cc


// Then there are boxes.size() groups of 5 which are LTRBD, where D is the
// text direction index.
int size = boxes.size() * 5;
Float32List result = {(float*)malloc(sizeof(float) * size),
(int)boxes.size() * size};
Float32List result = {(float*)malloc(sizeof(float) * size), size};
unsigned long position = 0;
for (unsigned long i = 0; i < boxes.size(); i++) {
const txt::Paragraph::TextBox& box = boxes[i];

部分文件因为文件数量过多而无法显示

正在加载...
取消
保存