Changeset 206 for trunk/LocalPlayer
- Timestamp:
- May 8, 2020, 6:12:35 PM (5 years ago)
- Location:
- trunk/LocalPlayer
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/CityScreen.pas
r205 r206 90 90 91 91 uses 92 Select, Messg, MessgEx, Help, Tribes, Directories, Math, PixelPointer, Sound;92 Select, Messg, MessgEx, Help, Tribes, Directories, Math, UPixelPointer, Sound; 93 93 94 94 {$R *.lfm} … … 443 443 begin 444 444 Offscreen.BeginUpdate; 445 PixelPtr .Init(Offscreen, X, Y);445 PixelPtr := PixelPointer(Offscreen, X, Y); 446 446 for YY := 0 to H - 1 do begin 447 447 for XX := 0 to W - 1 do begin -
trunk/LocalPlayer/Help.pas
r205 r206 127 127 128 128 uses 129 Directories, ClientTools, Term, Tribes, Inp, Messg, PixelPointer, Global;129 Directories, ClientTools, Term, Tribes, Inp, Messg, UPixelPointer, Global; 130 130 131 131 {$R *.lfm} … … 459 459 for y := 0 to ySizeBig * 2 - 1 do 460 460 if ((y0 + y) >= 0) and ((y0 + y) < InnerHeight) then begin 461 PaintPtr .Init(OffScreen, 0, y0 + y);462 CoalPtr .Init(Templates, 0, yCoal + y);461 PaintPtr := PixelPointer(OffScreen, 0, y0 + y); 462 CoalPtr := PixelPointer(Templates, 0, yCoal + y); 463 463 for dy := -1 to 1 do 464 464 if ((Max(y + dy, 0) shr 1) >= 0) and ((Max(y + dy, 0) shr 1) < ySizeBig) then 465 ImpPtr[dy] .Init(BigImp, 0, ySrc + (Max(y + dy, 0) shr 1));465 ImpPtr[dy] := PixelPointer(BigImp, 0, ySrc + (Max(y + dy, 0) shr 1)); 466 466 for x := 0 to xSizeBig * 2 - 1 do begin 467 467 sum := 0; -
trunk/LocalPlayer/IsoEngine.pas
r189 r206 6 6 uses 7 7 Protocol, ClientTools, ScreenTools, Tribes, {$IFNDEF SCR}Term, {$ENDIF} 8 LCLIntf, LCLType, SysUtils, Classes, Graphics, PixelPointer;8 LCLIntf, LCLType, SysUtils, Classes, Graphics, UPixelPointer; 9 9 10 10 type … … 375 375 begin 376 376 for i := 0 to yyt * 3 - 1 do 377 MaskLine[i] .Init(Mask24, 0, 1 + ySrc * (yyt * 3 + 1) + i);377 MaskLine[i] := PixelPointer(Mask24, 0, 1 + ySrc * (yyt * 3 + 1) + i); 378 378 for xSrc := 0 to 9 - 1 do 379 379 begin … … 1017 1017 for dy := 0 to yyt * 2 - 1 do 1018 1018 begin 1019 PixelPtr .Init(Borders, 0, p1 * (yyt * 2) + dy);1019 PixelPtr := PixelPointer(Borders, 0, p1 * (yyt * 2) + dy); 1020 1020 for dx := 0 to xxt * 2 - 1 do begin 1021 1021 if PixelPtr.Pixel^.B = 99 then begin … … 1340 1340 FOutput.BeginUpdate; 1341 1341 for y := y0 to y1 - 1 do begin 1342 Line .Init(FOutput, 0, y);1342 Line := PixelPointer(FOutput, 0, y); 1343 1343 y_n := (y - ym) / yyt; 1344 1344 if abs(y_n) < rShade then begin -
trunk/LocalPlayer/MessgEx.pas
r190 r206 73 73 74 74 uses 75 ClientTools, BaseWin, Term, Help, UnitStat, Tribes, PixelPointer,75 ClientTools, BaseWin, Term, Help, UnitStat, Tribes, UPixelPointer, 76 76 IsoEngine, Diagram, Sound; 77 77 … … 246 246 for iy := 0 to 39 do begin 247 247 for ix := 0 to 55 do begin 248 SrcPtr .Init(BigImp, ix + xIcon, iy + yIcon);248 SrcPtr := PixelPointer(BigImp, ix + xIcon, iy + yIcon); 249 249 xR := ix * (37 + iy * 5 / 40) / 56; 250 250 xDst := Trunc(xR); -
trunk/LocalPlayer/Term.pas
r205 r206 481 481 uses 482 482 Directories, IsoEngine, CityScreen, Draft, MessgEx, Select, CityType, Help, 483 UnitStat, Log, Diagram, NatStat, Wonders, Enhance, Nego, PixelPointer, Sound,483 UnitStat, Log, Diagram, NatStat, Wonders, Enhance, Nego, UPixelPointer, Sound, 484 484 Battle, Rates, TechTree, Registry, Global; 485 485 … … 577 577 if ydivider > ySizeSmall then 578 578 ydivider := ySizeSmall; 579 PixelPtr .Init(BigImp, 0, cut + iy * ySizeBig + y);579 PixelPtr := PixelPointer(BigImp, 0, cut + iy * ySizeBig + y); 580 580 for x := 0 to xSizeBig - 1 do 581 581 begin … … 610 610 SmallImp.BeginUpdate; 611 611 for y := 0 to ny - 1 do begin 612 PixelPtr .Init(SmallImp, 0, y);612 PixelPtr := PixelPointer(SmallImp, 0, y); 613 613 for x := 0 to nx - 1 do 614 614 for ch := 0 to 2 do begin … … 4075 4075 end; 4076 4076 Mini.BeginUpdate; 4077 MiniPixel .Init(Mini);4078 PrevMiniPixel .Init(Mini);4077 MiniPixel := PixelPointer(Mini); 4078 PrevMiniPixel := PixelPointer(Mini); 4079 4079 for y := 0 to G.ly - 1 do 4080 4080 begin -
trunk/LocalPlayer/Wonders.pas
r188 r206 38 38 39 39 uses 40 Term, ClientTools, Help, Tribes, PixelPointer;40 Term, ClientTools, Help, Tribes, UPixelPointer; 41 41 42 42 {$R *.lfm} … … 106 106 begin 107 107 Offscreen.BeginUpdate; 108 Line[0] .Init(Offscreen);109 Line[1] .Init(Offscreen);108 Line[0] := PixelPointer(Offscreen); 109 Line[1] := PixelPointer(Offscreen); 110 110 for Y := 0 to 127 do begin 111 111 for X := 0 to 179 do begin … … 144 144 x0Src := (i mod 7) * xSizeBig; 145 145 y0Src := (i div 7 + SystemIconLines) * ySizeBig; 146 Src .Init(BigImp, x0Src, y0Src);147 Dst .Init(Offscreen, x0Dst, y0Dst);146 Src := PixelPointer(BigImp, x0Src, y0Src); 147 Dst := PixelPointer(Offscreen, x0Dst, y0Dst); 148 148 for Y := 0 to ySizeBig - 1 do begin 149 149 for X := 0 to xSizeBig - 1 do begin
Note:
See TracChangeset
for help on using the changeset viewer.