Ignore:
Timestamp:
Dec 3, 2023, 11:28:08 AM (6 months ago)
Author:
chronos
Message:
  • Added: High DPI support integrated into trunk branch. It can be enabled by adding DPI define to compiler parameters for main project and packages.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Battle.pas

    r460 r468  
    55
    66uses
    7   ScreenTools, Protocol, ButtonBase, ButtonA, Types, LCLIntf, LCLType,
    8   SysUtils, Classes, Graphics, Controls, Forms, DrawDlg, IsoEngine;
     7  ScreenTools, Protocol, ButtonBase, ButtonA, Types, LCLIntf, LCLType, UITypes,
     8  SysUtils, Classes, DrawDlg, IsoEngine,
     9  {$IFDEF DPI}Dpi.Graphics, Dpi.Controls, Dpi.Forms{$ELSE}
     10  Graphics, Controls, Forms{$ENDIF};
    911
    1012type
     
    236238    Brush.Color := 0;
    237239    FillRect(Rect(0, 0, ClientWidth, ClientHeight));
    238     Brush.Style := bsClear;
     240    Brush.Style := TBrushStyle.bsClear;
    239241    PaintBackground(self, 3 + Border, 3 + Border,
    240242      ClientWidth - (6 + 2 * Border), ClientHeight - (6 + 2 * Border));
Note: See TracChangeset for help on using the changeset viewer.