Ignore:
Timestamp:
May 9, 2020, 4:02:07 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved HighDPI branch. Imported new changes from trunk branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/NoTerm.pas

    r193 r210  
    55
    66uses
    7   ScreenTools, Protocol, Messg, LCLIntf, LCLType, dateutils, Platform,
    8   SysUtils, Classes, Graphics, Controls, Forms, ButtonB, DrawDlg, UDpiControls;
     7  UDpiControls, ScreenTools, Protocol, Messg, LCLIntf, LCLType, dateutils, Platform,
     8  SysUtils, Classes, Graphics, Controls, Forms, ButtonB, DrawDlg;
    99
    1010type
     
    127127  RisedTextOut(State.Canvas, 0, 0, Format(Phrases.Lookup('AIT_ROUND'), [Round])
    128128    + ' ' + TurnToString(G.RO[me].Turn));
    129   DpiBitBlt(Canvas.Handle, 64, 287 + 138, 192, 20, State.Canvas.Handle, 0,
    130     0, SRCCOPY);
     129  DpiBitCanvas(Canvas, 64, 287 + 138, 192, 20, State.Canvas, 0, 0);
    131130end;
    132131
     
    174173        begin
    175174          Invalidate;
    176           Update;
     175          Update
    177176        end
    178177        else
     
    228227          ToldAlive := G.RO[me].Alive;
    229228        end;
    230         Application.ProcessMessages;
     229        DpiApplication.ProcessMessages;
    231230        if Mode = Quit then
    232231          EndPlaying
     
    331330        yBrain[i] - 16, 64, 64, 0, 0);
    332331      if 1 shl i and G.RO[me].Alive = 0 then
    333         DpiBitBlt(Canvas.Handle, xBrain[i], yBrain[i] - 16, 64, 64,
    334           Shade.Canvas.Handle, 0, 0, SRCAND);
     332        DpiBitCanvas(Canvas, xBrain[i], yBrain[i] - 16, 64, 64,
     333          Shade.Canvas, 0, 0, SRCAND);
    335334      Sprite(Canvas, HGrSystem, xBrain[i] + 30 - 14, yBrain[i] + 53, 14,
    336335        14, 1, 316);
     
    368367  begin
    369368    FormsCreated := true;
    370     Application.CreateForm(TNoTermDlg, NoTermDlg);
     369    DpiApplication.CreateForm(TNoTermDlg, NoTermDlg);
    371370  end;
    372371  NoTermDlg.Client(Command, Player, Data);
Note: See TracChangeset for help on using the changeset viewer.