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

    r460 r468  
    66uses
    77  Protocol, ClientTools, ScreenTools, BaseWin, LCLIntf, LCLType, SysUtils,
    8   Classes, Graphics, Controls, Forms, ButtonB, ButtonC, IsoEngine;
     8  Classes, ButtonB, ButtonC, IsoEngine,
     9  {$IFDEF DPI}Dpi.Graphics, Dpi.Controls, Dpi.Forms{$ELSE}
     10  Graphics, Controls, Forms{$ENDIF};
    911
    1012type
     
    7981
    8082  Back := TBitmap.Create;
    81   Back.PixelFormat := pf24bit;
     83  Back.PixelFormat := TPixelFormat.pf24bit;
    8284  Back.SetSize(5 * wCommon, hMax);
    8385  Back.Canvas.FillRect(0, 0, Back.Width, Back.Height);
    8486  Template := TBitmap.Create;
    85   Template.PixelFormat := pf24bit;
     87  Template.PixelFormat := TPixelFormat.pf24bit;
    8688  LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'Unit.png',
    8789    [gfNoGamma]);
     
    343345              Brush.Color := $FFFFFF;
    344346              FillRect(Rect(X - 3 + dx, Y + 2, X + W - 1 + dx, Y + 16));
    345               Brush.Style := bsClear;
     347              Brush.Style := TBrushStyle.bsClear;
    346348              Textout(X - 3 + dx + 1, Y, S);
    347349              Inc(dx, W + 1);
     
    349351            Brush.Color := $C0C0C0;
    350352            FrameRect(Rect(X - 3 + dx, Y + 2, X + 11 + dx, Y + 16));
    351             Brush.Style := bsClear;
     353            Brush.Style := TBrushStyle.bsClear;
    352354            Sprite(dst, HGrSystem, X - 1 + dx, Y + 4, 10, 10,
    353355              66 + I mod 11 * 11, 137 + I div 11 * 11);
     
    512514            Offscreen.Canvas.FillRect(Rect(xView, yView, xView + 64,
    513515              yView + 16));
    514             Brush.Style := bsClear;
     516            Brush.Style := TBrushStyle.bsClear;
    515517          end;
    516518
Note: See TracChangeset for help on using the changeset viewer.