LazUtils: Do not garble LazFreeType fonts. Issue #37012

git-svn-id: branches/fixes_2_0@63468 -
This commit is contained in:
mattias 2020-06-28 16:54:34 +00:00
parent dd7609f0dc
commit 64908be44a

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;