Ignore:
Timestamp:
May 9, 2020, 11:21:54 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Scale help watermark.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Packages/DpiControls/UDpiControls.pas

    r212 r213  
    710710    constructor Create;
    711711    destructor Destroy; override;
     712    procedure UpdateScreen;
    712713    property FormCount: Integer read GetFormCount;
    713714    property Forms[Index: Integer]: TDpiForm read GetForms;
     
    10421043begin
    10431044  GetVclApplication.Initialize;
     1045  DpiScreen.UpdateScreen;
    10441046end;
    10451047
     
    21722174  FForms := TDpiForms.Create;
    21732175  FForms.FreeObjects := False;
    2174   Dpi := Round(96 * 2); //Screen.PixelsPerInch;
     2176  // Screen.PixelsPerInch is not initialized at this point
     2177  Dpi := 96;
    21752178end;
    21762179
     
    21792182  FreeAndNil(FForms);
    21802183  inherited Destroy;
     2184end;
     2185
     2186procedure TDpiScreen.UpdateScreen;
     2187begin
     2188  Dpi := Screen.PixelsPerInch;
    21812189end;
    21822190
Note: See TracChangeset for help on using the changeset viewer.