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

    r460 r468  
    66uses
    77  Protocol, ClientTools, ScreenTools, BaseWin, LCLIntf, LCLType, SysUtils,
    8   Classes, Graphics, Controls, Forms, ExtCtrls, ButtonA, ButtonB, Area;
     8  Classes, ButtonA, ButtonB, Area, System.UITypes,
     9  {$IFDEF DPI}Dpi.Graphics, Dpi.Controls, Dpi.Forms, Dpi.ExtCtrls{$ELSE}
     10  Graphics, Controls, Forms, ExtCtrls{$ENDIF};
    911
    1012type
     
    8385
    8486  Back := TBitmap.Create;
    85   Back.PixelFormat := pf24bit;
     87  Back.PixelFormat := TPixelFormat.pf24bit;
    8688  Back.SetSize(Width, Height);
    8789  Back.Canvas.FillRect(0, 0, Back.Width, Back.Height);
    8890  Template := TBitmap.Create;
    89   Template.PixelFormat := pf24bit;
     91  Template.PixelFormat := TPixelFormat.pf24bit;
    9092  LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'MiliRes.png',
    9193    [gfNoGamma]);
     
    156158              FrameRect(Rect(xTotal2 - 3 - dx, Y + 2,
    157159                xTotal2 + 11 - dx, Y + 16));
    158               Brush.Style := bsClear;
     160              Brush.Style := TBrushStyle.bsClear;
    159161              Sprite(Offscreen, HGrSystem, xTotal2 - 1 - dx, Y + 4, 10, 10,
    160162                66 + I mod 11 * 11, 137 + I div 11 * 11);
     
    167169                FillRect(Rect(xTotal2 - 3 - dx, Y + 2,
    168170                  xTotal2 + W - 1 - dx, Y + 16));
    169                 Brush.Style := bsClear;
     171                Brush.Style := TBrushStyle.bsClear;
    170172                Textout(xTotal2 - 3 - dx + 1, Y, S);
    171173              end;
     
    508510  I, D: Integer;
    509511begin
    510   if Button = mbLeft then
     512  if Button = TMouseButton.mbLeft then
    511513  begin
    512514    for D := 0 to nDomains - 1 do
Note: See TracChangeset for help on using the changeset viewer.