Ignore:
Timestamp:
Jun 23, 2019, 3:15:29 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Use DpiControls package for High DPI support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/GameServer.pas

    r169 r178  
    77
    88uses
    9   Protocol, Database, dynlibs, Platform, dateutils, fgl, FileUtil, Graphics;
     9  Protocol, Database, dynlibs, Platform, dateutils, fgl, FileUtil, Graphics,
     10  UDpiControls;
    1011
    1112const
     
    7172    Initialized: Boolean;
    7273    Kind: TBrainType;
    73     Picture: TBitmap;
     74    Picture: TDpiBitmap;
    7475    procedure LoadFromFile(AIFileName: string);
    7576    constructor Create;
     
    556557  s: string[255];
    557558begin
    558   MapFile := TFileStream.Create(GetMapsDir + DirectorySeparator + FileName,
     559  MapFile := TFileStream.Create(DataDir + 'Maps' + DirectorySeparator + FileName,
    559560    fmCreate or fmShareExclusive);
    560561  MapFile.Position := 0;
     
    579580  MapFile := nil;
    580581  try
    581     MapFile := TFileStream.Create(GetMapsDir + DirectorySeparator + FileName,
     582    MapFile := TFileStream.Create(DataDir + 'Maps' + DirectorySeparator + FileName,
    582583      fmOpenRead or fmShareExclusive);
    583584    MapFile.Position := 0;
Note: See TracChangeset for help on using the changeset viewer.