Changeset 473 for trunk/Start.pas


Ignore:
Timestamp:
Dec 4, 2023, 12:13:15 PM (12 months ago)
Author:
chronos
Message:
  • Added: Custom DPI configuration in Settings dialog.
  • Fixed: Better High DPI support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r472 r473  
    389389
    390390    OpenKey(AppRegistryKey, True);
    391     if ValueExists('Gamma') then Gamma := ReadInteger('Gamma')
    392       else Gamma := 100;
    393     if Gamma <> 100 then InitGammaLookupTable;
    394391    if ValueExists('Locale') then LocaleCode := ReadString('Locale')
    395392      else LocaleCode := '';
     
    444441  Reg: TRegistry;
    445442begin
     443  ScreenTools.SaveConfig(AppRegistryKey);
     444
    446445  Reg := TRegistry.Create;
    447446  with Reg do try
     
    450449    WriteInteger('LandMass', StartLandMass);
    451450    WriteString('Locale', LocaleCode);
    452     WriteInteger('Gamma', Gamma);
    453451    if FullScreen then WriteInteger('ScreenMode', 1)
    454452      else WriteInteger('ScreenMode', 0);
Note: See TracChangeset for help on using the changeset viewer.