Ignore:
Timestamp:
May 8, 2020, 6:12:35 PM (4 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/Help.pas

    r205 r206  
    127127
    128128uses
    129   Directories, ClientTools, Term, Tribes, Inp, Messg, PixelPointer, Global;
     129  Directories, ClientTools, Term, Tribes, Inp, Messg, UPixelPointer, Global;
    130130
    131131{$R *.lfm}
     
    459459  for y := 0 to ySizeBig * 2 - 1 do
    460460    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);
    463463      for dy := -1 to 1 do
    464464        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));
    466466      for x := 0 to xSizeBig * 2 - 1 do begin
    467467        sum := 0;
Note: See TracChangeset for help on using the changeset viewer.