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/Help.pas

    r460 r468  
    55
    66uses
    7   Protocol, ScreenTools, BaseWin, StringTables, Math, LCLIntf, LCLType,
    8   Messages, SysUtils, Classes, Graphics, Controls, Forms, ExtCtrls,
    9   ButtonB, PVSB, Types, Generics.Collections, IsoEngine;
     7  Protocol, ScreenTools, BaseWin, StringTables, Math, LCLIntf, LCLType, System.UITypes,
     8  Messages, SysUtils, Classes, ButtonB, PVSB, Types, Generics.Collections, IsoEngine,
     9  {$IFDEF DPI}Dpi.Graphics, Dpi.Controls, Dpi.Forms, Dpi.ExtCtrls, Dpi.Common{$ELSE}
     10  Graphics, Controls, Forms, ExtCtrls{$ENDIF};
    1011
    1112const
     
    151152
    152153uses
    153   Directories, ClientTools, Term, Tribes, Inp, Messg, PixelPointer, Global,
    154   KeyBindings;
     154  {$IFDEF DPI}Dpi.PixelPointer,{$ELSE}PixelPointer,{$ENDIF}
     155  Directories, ClientTools, Term, Tribes, Inp, Messg, Global, KeyBindings;
    155156
    156157{$R *.lfm}
     
    293294  CaptionFont := Font.Create;
    294295  CaptionFont.Assign(UniFont[ftNormal]);
    295   CaptionFont.Style := CaptionFont.Style + [fsItalic, fsBold];
     296  CaptionFont.Style := CaptionFont.Style + [TFontStyle.fsItalic, TFontStyle.fsBold];
    296297  InitButtons;
    297298
     
    302303  ExtPic := TBitmap.Create;
    303304  TerrIcon := TBitmap.Create;
    304   TerrIcon.PixelFormat := pf24bit;
     305  TerrIcon.PixelFormat := TPixelFormat.pf24bit;
    305306  TerrIcon.SetSize(xSizeBig, ySizeBig);
    306307  TerrIcon.Canvas.FillRect(0, 0, TerrIcon.Width, TerrIcon.Height);
     
    699700                FrameRect(Rect(ofs, 1 + 23 + I * 24, ofs + 14,
    700701                  15 + 23 + I * 24));
    701                 Brush.Style := bsClear;
     702                Brush.Style := TBrushStyle.bsClear;
    702703                Sprite(OffScreen, HGrSystem, ofs + 2, 3 + 23 + I * 24, 10, 10,
    703704                  66 + HelpLineInfo.Picpix mod 11 * 11,
Note: See TracChangeset for help on using the changeset viewer.