Commit 74b8021c authored by Juha Manninen's avatar Juha Manninen
Browse files

LazUtils: Initialize LazFreeType graphics state correctly. Issue #37033, patch from circular.

git-svn-id: trunk@63128 -
parent e3569b9c
......@@ -745,10 +745,6 @@ const
end;
Context_Load( exec, instance );
if instance^.GS.instruct_control and 2 <> 0 then
exec^.GS := Default_GraphicsState
else
exec^.GS := instance^.GS;
glyph^.outline.high_precision := ( instance^.metrics.y_ppem < 24 );
......@@ -925,6 +921,11 @@ const
if load_top > 0 then
new_flags := new_flags and not TT_Load_Debug;
if instance^.GS.instruct_control and 2 <> 0 then
exec^.GS := Default_GraphicsState
else
exec^.GS := instance^.GS;
if Load_Simple_Glyph(
ftstream,
exec,
......
......@@ -335,7 +335,7 @@ type
(* *)
(* - if projVector is horizontal, ratio = x_ratio = 1.0 *)
(* - if projVector is vertical, ratop = y_ratio *)
(* - else, ratio = sqrt( (proj.x*x_ratio)ý+(proj.y*y_ratio)ý ) *)
(* - else, ratio = sqrt( (proj.x*x_ratio)**2+(proj.y*y_ratio)**2 ) *)
(* *)
(* reading a cvt value returns ratio*cvt[index] *)
(* writing a cvt value in pixels cvt[index]/ratio *)
......@@ -1722,7 +1722,6 @@ const
( (not debug) and Run_Ins( @exec^ ) ) then
goto Fin;
ins^.GS := exec^.GS;
Instance_Reset := Success;
Fin:
......
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