Changeset 213 for branches/highdpi/Packages/DpiControls/UDpiControls.pas
- Timestamp:
- May 9, 2020, 11:21:54 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Packages/DpiControls/UDpiControls.pas
r212 r213 710 710 constructor Create; 711 711 destructor Destroy; override; 712 procedure UpdateScreen; 712 713 property FormCount: Integer read GetFormCount; 713 714 property Forms[Index: Integer]: TDpiForm read GetForms; … … 1042 1043 begin 1043 1044 GetVclApplication.Initialize; 1045 DpiScreen.UpdateScreen; 1044 1046 end; 1045 1047 … … 2172 2174 FForms := TDpiForms.Create; 2173 2175 FForms.FreeObjects := False; 2174 Dpi := Round(96 * 2); //Screen.PixelsPerInch; 2176 // Screen.PixelsPerInch is not initialized at this point 2177 Dpi := 96; 2175 2178 end; 2176 2179 … … 2179 2182 FreeAndNil(FForms); 2180 2183 inherited Destroy; 2184 end; 2185 2186 procedure TDpiScreen.UpdateScreen; 2187 begin 2188 Dpi := Screen.PixelsPerInch; 2181 2189 end; 2182 2190
Note:
See TracChangeset
for help on using the changeset viewer.