Changeset 210 for branches/highdpi/LocalPlayer/Rates.pas
- Timestamp:
- May 9, 2020, 4:02:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/Rates.pas
r193 r210 5 5 6 6 uses 7 Protocol, ScreenTools, BaseWin, LCLIntf, LCLType,7 UDpiControls, Protocol, ScreenTools, BaseWin, LCLIntf, LCLType, 8 8 9 9 SysUtils, Classes, Graphics, Controls, Forms, … … 29 29 RatesDlg: TRatesDlg; 30 30 31 32 31 implementation 33 32 34 33 uses 35 ClientTools, Term, Tribes , UDpiControls;34 ClientTools, Term, Tribes; 36 35 37 36 {$R *.lfm} … … 96 95 GlowFrame(Offscreen, ClientWidth div 2 - xSizeBig div 2, 52, xSizeBig, 97 96 ySizeBig, Tribe[me].Color); 98 DpiBit Blt(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); 101 100 end 102 101 else … … 123 122 begin 124 123 for i := 0 to current div 8 - 1 do 125 DpiBit Blt(Handle, x + max - 8 - i * 8, y, 8, 7,126 GrExt[HGrSystem].Data.Canvas .Handle, 104, 9 + 8 * 2, SRCCOPY);127 DpiBit Blt(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); 129 128 Brush.Color := $000000; 130 129 FillRect(Rect(x, y, x + max - current, y + 7));
Note:
See TracChangeset
for help on using the changeset viewer.