Pārlūkot izejas kodu

* fixed small mistake in clipping

master
Bergmann89 pirms 8 gadiem
vecāks
revīzija
5e27aaea10
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      utsTextBlock.pas

+ 2
- 2
utsTextBlock.pas Parādīt failu

@@ -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;


Notiek ielāde…
Atcelt
Saglabāt