瀏覽代碼

* fixed small mistake in clipping

master
Bergmann89 8 年之前
父節點
當前提交
5e27aaea10
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      utsTextBlock.pas

+ 2
- 2
utsTextBlock.pas 查看文件

@@ -744,9 +744,9 @@ var
// check vertical clipping
case Clipping of
tsClipCharBorder, tsClipWordBorder:
draw := (y + line^.meta.Height > r.Top) and (y < r.Bottom);
draw := (y + line^.meta.Height >= r.Top) and (y <= r.Bottom);
tsClipCharComplete, tsClipWordComplete:
draw := (y > r.Top) and (y + line^.meta.Height < r.Bottom);
draw := (y >= r.Top) and (y + line^.meta.Height <= r.Bottom);
else
draw := true;
end;


Loading…
取消
儲存