mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 23:30:22 +02:00
delay creating hintfont until it is asked for, PixelPerInch is then correctly initialized (fixes too large hint font)
git-svn-id: trunk@8533 -
This commit is contained in:
parent
95a373e249
commit
ce6dbded1c
@ -34,7 +34,6 @@ begin
|
||||
FCustomFormsZOrdered:=TList.Create;
|
||||
FFormList := TList.Create;
|
||||
FPixelsPerInch:= ScreenInfo.PixelsPerInchX;
|
||||
FHintFont := TFont.Create;
|
||||
FSaveFocusedList := TList.Create;
|
||||
end;
|
||||
|
||||
@ -427,6 +426,8 @@ end;
|
||||
|
||||
Function TScreen.GetHintFont: TFont;
|
||||
begin
|
||||
if (FHintFont=nil) then
|
||||
FHintFont := TFont.Create;
|
||||
if not WidgetSet.InitHintFont(FHintFont) then
|
||||
begin
|
||||
// FHintFont.Name := 'courier';
|
||||
|
Loading…
Reference in New Issue
Block a user