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

    r460 r468  
    55
    66uses
    7   ScreenTools, BaseWin, Protocol, LCLType, SysUtils, Classes, Graphics,
    8   Controls, Forms, ButtonA, ButtonB, ButtonN;
     7  ScreenTools, BaseWin, Protocol, LCLType, SysUtils, Classes, ButtonA, ButtonB,
     8  ButtonN, System.UITypes,
     9  {$IFDEF DPI}Dpi.Graphics, Dpi.Controls, Dpi.Forms{$ELSE}
     10  Graphics, Controls, Forms{$ENDIF};
    911
    1012const
     
    432434    else
    433435      FillRect(Rect(X, Y, X + 64, Y + 48));
    434     Brush.Style := bsClear;
     436    Brush.Style := TBrushStyle.bsClear;
    435437    ScreenTools.Frame(Offscreen.Canvas, X - 1, Y - 1, X + 64, Y + 48, $000000, $000000);
    436438  end
     
    572574    FillRect(Rect(xText1 + PaperShade, yText1 + hText,
    573575      xText1 + wText + PaperShade, yText1 + hText + PaperShade));
    574     Brush.Style := bsClear;
     576    Brush.Style := TBrushStyle.bsClear;
    575577  end;
    576578
Note: See TracChangeset for help on using the changeset viewer.