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

Legend:

Unmodified
Added
Removed
  • branches/highdpi/LocalPlayer/Rates.pas

    r193 r210  
    55
    66uses
    7   Protocol, ScreenTools, BaseWin, LCLIntf, LCLType,
     7  UDpiControls, Protocol, ScreenTools, BaseWin, LCLIntf, LCLType,
    88
    99  SysUtils, Classes, Graphics, Controls, Forms,
     
    2929  RatesDlg: TRatesDlg;
    3030
    31 
    3231implementation
    3332
    3433uses
    35   ClientTools, Term, Tribes, UDpiControls;
     34  ClientTools, Term, Tribes;
    3635
    3736{$R *.lfm}
     
    9695    GlowFrame(Offscreen, ClientWidth div 2 - xSizeBig div 2, 52, xSizeBig,
    9796      ySizeBig, Tribe[me].Color);
    98     DpiBitBlt(Offscreen.Canvas.Handle, ClientWidth div 2 - xSizeBig div 2, 52,
    99       xSizeBig, ySizeBig, BigImp.Canvas.Handle, (woLiberty mod 7) * xSizeBig,
    100       (woLiberty div 7 + SystemIconLines) * ySizeBig, SRCCOPY);
     97    DpiBitCanvas(Offscreen.Canvas, ClientWidth div 2 - xSizeBig div 2, 52,
     98      xSizeBig, ySizeBig, BigImp.Canvas, (woLiberty mod 7) * xSizeBig,
     99      (woLiberty div 7 + SystemIconLines) * ySizeBig);
    101100  end
    102101  else
     
    123122    begin
    124123      for i := 0 to current div 8 - 1 do
    125         DpiBitBlt(Handle, x + max - 8 - i * 8, y, 8, 7,
    126           GrExt[HGrSystem].Data.Canvas.Handle, 104, 9 + 8 * 2, SRCCOPY);
    127       DpiBitBlt(Handle, x + max - current, y, current - 8 * (current div 8), 7,
    128         GrExt[HGrSystem].Data.Canvas.Handle, 104, 9 + 8 * 2, SRCCOPY);
     124        DpiBitCanvas(Offscreen.Canvas, x + max - 8 - i * 8, y, 8, 7,
     125          GrExt[HGrSystem].Data.Canvas, 104, 9 + 8 * 2);
     126      DpiBitCanvas(Offscreen.Canvas, x + max - current, y, current - 8 * (current div 8), 7,
     127        GrExt[HGrSystem].Data.Canvas, 104, 9 + 8 * 2);
    129128      Brush.Color := $000000;
    130129      FillRect(Rect(x, y, x + max - current, y + 7));
Note: See TracChangeset for help on using the changeset viewer.