Ignore:
Timestamp:
Jun 23, 2019, 3:15:29 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Use DpiControls package for High DPI support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/NoTerm.pas

    r144 r178  
    66uses
    77  ScreenTools, Protocol, Messg, LCLIntf, LCLType, dateutils, Platform,
    8   SysUtils, Classes, Graphics, Controls, Forms, ButtonB, DrawDlg;
     8  SysUtils, Classes, Graphics, Controls, Forms, ButtonB, DrawDlg, UDpiControls;
    99
    1010type
     
    2525    G: TNewGameData;
    2626    Server: TServerCall;
    27     Shade, State: TBitmap;
     27    Shade, State: TDpiBitmap;
    2828    WinStat, ExtStat, AloneStat: array [0 .. nPl - 1] of integer;
    2929    DisallowShowActive: array [0 .. nPl - 1] of boolean;
     
    147147        Server := TInitModuleData(Data).Server;
    148148        TInitModuleData(Data).Flags := aiThreaded;
    149         Shade := TBitmap.Create;
     149        Shade := TDpiBitmap.Create;
    150150        Shade.SetSize(64, 64);
    151151        for x := 0 to 63 do
     
    155155            else
    156156              Shade.Canvas.Pixels[x, y] := $000000;
    157         State := TBitmap.Create;
     157        State := TDpiBitmap.Create;
    158158        State.SetSize(192, 20);
    159159        State.Canvas.Brush.Style := bsClear;
     
    174174        begin
    175175          Invalidate;
    176           Update
     176          Update;
    177177        end
    178178        else
Note: See TracChangeset for help on using the changeset viewer.