LazUtils: Do not garble LazFreeType fonts. Issue #37012, patch from circular.

git-svn-id: trunk@63125 -
This commit is contained in:
juha 2020-05-07 20:20:56 +00:00
parent 9679fa6543
commit 8fccfb64ef

View File

@ -141,8 +141,15 @@ var
temp: Int64;
begin
temp := int64(a)*int64(b);
if temp >= 0 then temp += c shr 1
else temp -= c shr 1;
if c < 0 then
begin
c := -c;
temp := -temp;
end;
if temp >= 0 then
temp += c shr 1
else
temp -= c shr 1;
result := temp div c;
end;