Ignore:
Timestamp:
May 8, 2020, 6:12:35 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Remove warnings about uninitialized TPixelPointer variables. Initialize that types using PixelPointer function in similar way how TPoint is inicialized using Point function.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Wonders.pas

    r188 r206  
    3838
    3939uses
    40   Term, ClientTools, Help, Tribes, PixelPointer;
     40  Term, ClientTools, Help, Tribes, UPixelPointer;
    4141
    4242{$R *.lfm}
     
    106106begin
    107107  Offscreen.BeginUpdate;
    108   Line[0].Init(Offscreen);
    109   Line[1].Init(Offscreen);
     108  Line[0] := PixelPointer(Offscreen);
     109  Line[1] := PixelPointer(Offscreen);
    110110  for Y := 0 to 127 do begin
    111111    for X := 0 to 179 do begin
     
    144144  x0Src := (i mod 7) * xSizeBig;
    145145  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);
    148148  for Y := 0 to ySizeBig - 1 do begin
    149149    for X := 0 to xSizeBig - 1 do begin
Note: See TracChangeset for help on using the changeset viewer.