Changeset 107 for trunk/UCore.pas
- Timestamp:
- Feb 17, 2016, 1:17:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r103 r107 59 59 procedure SaveConfig; 60 60 procedure CommandLineParams; 61 procedure ScaleDPI; 61 62 public 62 63 Game: TGame; … … 196 197 end; 197 198 199 procedure TCore.ScaleDPI; 200 var 201 I: Integer; 202 begin 203 {$ifdef DEBUG} 204 with Core.ScaleDPI1 do begin 205 //DesignDPI := Point(144, 144); 206 if (DesignDPI.X <> DPI.X) or (DesignDPI.Y <> DPI.Y) then begin 207 //ApplyToAll(DesignDPI); 208 FormNew.Show; 209 FormNew.Hide; 210 for I := 0 to Screen.FormCount - 1 do begin 211 StoreDimensions(Screen.Forms[I], StoredDimension); 212 ScaleDimensions(Screen.Forms[I], StoredDimension); 213 end; 214 ScaleImageList(Core.ImageListSmall, DesignDPI); 215 ScaleImageList(Core.ImageListLarge, DesignDPI); 216 end; 217 end; 218 {$endif} 219 end; 220 198 221 procedure TCore.UpdateActions; 199 222 begin … … 351 374 352 375 CommandLineParams; 353 354 {$IFDEF DEBUG} 355 {with Core.ScaleDPI1 do 356 if (DesignDPI.X <> DPI.X) or (DesignDPI.Y <> DPI.Y) then begin 357 //ApplyToAll(DesignDPI); 358 FormNew.Show; 359 FormNew.Hide; 360 for I := 0 to Screen.FormCount - 1 do begin 361 StoreDimensions(Screen.Forms[I], StoredDimension); 362 ScaleDimensions(Screen.Forms[I], StoredDimension); 363 end; 364 ScaleImageList(Core.ImageListSmall, DesignDPI); 365 ScaleImageList(Core.ImageListLarge, DesignDPI); 366 end; 367 } 368 {$ENDIF} 376 ScaleDPI; 369 377 370 378 if Game.FileName = '' then begin
Note:
See TracChangeset
for help on using the changeset viewer.