Commit 8fccfb64 authored by Juha Manninen's avatar Juha Manninen
Browse files

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

git-svn-id: trunk@63125 -
parent 9679fa65
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment