Changeset 210 for branches/highdpi/LocalPlayer/Select.pas
- Timestamp:
- May 9, 2020, 4:02:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/Select.pas
r193 r210 5 5 6 6 uses 7 Protocol, ClientTools, Term, ScreenTools, IsoEngine, PVSB, BaseWin, UDpiControls, 8 LCLIntf, LCLType, LMessages, Messages, SysUtils, Classes, Graphics, Controls, Forms, 7 UDpiControls, Protocol, ClientTools, Term, ScreenTools, IsoEngine, PVSB, BaseWin, 8 9 LCLIntf, LCLType, Messages, SysUtils, Classes, Graphics, Controls, Forms, 9 10 ExtCtrls, ButtonB, ButtonBase, Menus, Types; 10 11 … … 196 197 if pix and cpType = 0 then 197 198 if (pix and cpIndex = imPalace) and (MyRO.Government <> gAnarchy) then 198 DpiBit Blt(offscreen.Canvas.Handle, x + 16, y + (16 - 1), xSizeSmall,199 ySizeSmall, SmallImp.Canvas .Handle, (MyRO.Government - 1) *200 xSizeSmall, ySizeSmall , SRCCOPY)199 DpiBitCanvas(offscreen.Canvas, x + 16, y + (16 - 1), xSizeSmall, 200 ySizeSmall, SmallImp.Canvas, (MyRO.Government - 1) * 201 xSizeSmall, ySizeSmall) 201 202 else 202 DpiBit Blt(offscreen.Canvas.Handle, x + 16, y + (16 - 1), xSizeSmall,203 ySizeSmall, SmallImp.Canvas .Handle, pix and cpIndex mod 7 *203 DpiBitCanvas(offscreen.Canvas, x + 16, y + (16 - 1), xSizeSmall, 204 ySizeSmall, SmallImp.Canvas, pix and cpIndex mod 7 * 204 205 xSizeSmall, (pix and cpIndex + SystemIconLines * 7) div 7 * 205 ySizeSmall , SRCCOPY)206 ySizeSmall) 206 207 else 207 DpiBit Blt(offscreen.Canvas.Handle, x + 16, y + (16 - 1), xSizeSmall,208 ySizeSmall, SmallImp.Canvas .Handle, (3 + pix and cpIndex) *209 xSizeSmall, 0 , SRCCOPY)208 DpiBitCanvas(offscreen.Canvas, x + 16, y + (16 - 1), xSizeSmall, 209 ySizeSmall, SmallImp.Canvas, (3 + pix and cpIndex) * 210 xSizeSmall, 0); 210 211 end; 211 212 end; … … 567 568 MainTexture.clBevelLight, MainTexture.clBevelShade); 568 569 if AdvIcon[lix] < 84 then 569 DpiBit Blt(offscreen.Canvas.Handle, (8 + 16), y0, xSizeSmall,570 ySizeSmall, SmallImp.Canvas .Handle,570 DpiBitCanvas(offscreen.Canvas, (8 + 16), y0, xSizeSmall, 571 ySizeSmall, SmallImp.Canvas, 571 572 (AdvIcon[lix] + SystemIconLines * 7) mod 7 * xSizeSmall, 572 573 (AdvIcon[lix] + SystemIconLines * 7) div 7 * 573 ySizeSmall , SRCCOPY)574 ySizeSmall) 574 575 else 575 576 Dump(offscreen, HGrSystem, (8 + 16), y0, 36, 20, … … 577 578 295 + (AdvIcon[lix] - 84) div 8 * 21); 578 579 j := AdvValue[lix] div 1000; 579 DpiBit Blt(Handle, (8 + 16 - 4), y0 + 2, 14, 14,580 GrExt[HGrSystem].Mask.Canvas .Handle, 127 + j * 15,580 DpiBitCanvas(Canvas, (8 + 16 - 4), y0 + 2, 14, 14, 581 GrExt[HGrSystem].Mask.Canvas, 127 + j * 15, 581 582 85, SRCAND); 582 583 Sprite(offscreen, HGrSystem, (8 + 16 - 5), y0 + 1, 14, 14, … … 672 673 8 + 16 + xSizeSmall, y0 - 15 + (16 - 1 + ySizeSmall), 673 674 MainTexture.clBevelLight, MainTexture.clBevelShade); 674 DpiBit Blt(offscreen.Canvas.Handle, 8 + 16, y0 - 15 + (16 - 1),675 xSizeSmall, ySizeSmall, SmallImp.Canvas .Handle,676 (lix - 1) * xSizeSmall, ySizeSmall , SRCCOPY);675 DpiBitCanvas(offscreen.Canvas, 8 + 16, y0 - 15 + (16 - 1), 676 xSizeSmall, ySizeSmall, SmallImp.Canvas, 677 (lix - 1) * xSizeSmall, ySizeSmall); 677 678 end 678 679 end; … … 815 816 LoweredTextOut(Canvas, -1, MainTexture, xScreen + 10, 816 817 ClientHeight - 29, s); 817 BitBltCanvas(ScienceNationDot.Canvas, 0, 0, 17, 17, Canvas,818 xScreen - 10, ClientHeight - 27 , SRCCOPY);818 DpiBitCanvas(ScienceNationDot.Canvas, 0, 0, 17, 17, Canvas, 819 xScreen - 10, ClientHeight - 27); 819 820 ImageOp_BCC(ScienceNationDot, Templates, 0, 0, 114, 211, 17, 17, 820 821 MainTexture.clBevelShade, Tribe[ScienceNation].Color); 821 DpiBit Blt(Canvas.Handle, xScreen - 10, ClientHeight - 27, 17, 17,822 ScienceNationDot.Canvas .Handle, 0, 0, SRCCOPY);822 DpiBitCanvas(Canvas, xScreen - 10, ClientHeight - 27, 17, 17, 823 ScienceNationDot.Canvas, 0, 0); 823 824 end; 824 825 end
Note:
See TracChangeset
for help on using the changeset viewer.