Ignore:
Timestamp:
Dec 3, 2023, 11:28:08 AM (5 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/TechTree.pas

    r460 r468  
    55
    66uses
    7   ScreenTools, LCLIntf, LCLType, SysUtils, Classes, Graphics,
    8   Controls, Forms, ButtonB, DrawDlg;
     7  ScreenTools, LCLIntf, LCLType, SysUtils, Classes, ButtonB, DrawDlg,
     8  {$IFDEF DPI}Dpi.Graphics, Dpi.Controls, Dpi.Forms{$ELSE}
     9  Graphics, Controls, Forms{$ENDIF};
    910
    1011type
     
    132133  if Image = nil then begin
    133134    Image := TBitmap.Create;
    134     Image.PixelFormat := pf24bit;
     135    Image.PixelFormat := TPixelFormat.pf24bit;
    135136    LoadGraphicFile(Image, HomeDir + 'Help' + DirectorySeparator + 'AdvTree.png',
    136137      [gfNoGamma]);
     
    140141      Font.Assign(UniFont[ftSmall]);
    141142      Font.Color := clBlack;
    142       Brush.Style := bsClear;
     143      Brush.Style := TBrushStyle.bsClear;
    143144      for X := 0 to (Image.Width - xStart) div xPitch do
    144145        for Y := 0 to (Image.Height - yStart) div yPitch do
     
    186187  Shift: TShiftState; X, Y: Integer);
    187188begin
    188   if Button = mbLeft then
     189  if Button = TMouseButton.mbLeft then
    189190  begin
    190191    Dragging := True;
Note: See TracChangeset for help on using the changeset viewer.