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:
vincents 2006-01-16 20:52:04 +00:00
parent 95a373e249
commit ce6dbded1c

View File

@ -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';