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

    r460 r468  
    66uses
    77  Protocol, ClientTools, ScreenTools, BaseWin, LCLIntf, LCLType, SysUtils,
    8   Classes, Graphics, Controls, Forms, ButtonB, ButtonC, Menus, EOTButton;
     8  Classes, ButtonB, ButtonC, EOTButton,
     9  {$IFDEF DPI}Dpi.Graphics, Dpi.Controls, Dpi.Forms, Dpi.Menus{$ELSE}
     10  Graphics, Controls, Forms, Menus{$ENDIF};
    911
    1012type
     
    8688
    8789  Back := TBitmap.Create;
    88   Back.PixelFormat := pf24bit;
     90  Back.PixelFormat := TPixelFormat.pf24bit;
    8991  Back.SetSize(Width, Height);
    9092  Back.Canvas.FillRect(0, 0, Back.Width, Back.Height);
    9193  Template := TBitmap.Create;
    92   Template.PixelFormat := pf24bit;
     94  Template.PixelFormat := TPixelFormat.pf24bit;
    9395  LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'Nation.png',
    9496    [gfNoGamma]);
     
    359361        FillRect(Rect(xReport + PaperShade, yReport + hReport,
    360362          xReport + wReport + PaperShade, yReport + hReport + PaperShade));
    361         Brush.Style := bsClear;
     363        Brush.Style := TBrushStyle.bsClear;
    362364      end;
    363365
Note: See TracChangeset for help on using the changeset viewer.