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/Term.pas

    r205 r206  
    481481uses
    482482  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,
    484484  Battle, Rates, TechTree, Registry, Global;
    485485
     
    577577        if ydivider > ySizeSmall then
    578578          ydivider := ySizeSmall;
    579         PixelPtr.Init(BigImp, 0, cut + iy * ySizeBig + y);
     579        PixelPtr := PixelPointer(BigImp, 0, cut + iy * ySizeBig + y);
    580580        for x := 0 to xSizeBig - 1 do
    581581        begin
     
    610610  SmallImp.BeginUpdate;
    611611  for y := 0 to ny - 1 do begin
    612     PixelPtr.Init(SmallImp, 0, y);
     612    PixelPtr := PixelPointer(SmallImp, 0, y);
    613613    for x := 0 to nx - 1 do
    614614      for ch := 0 to 2 do begin
     
    40754075  end;
    40764076  Mini.BeginUpdate;
    4077   MiniPixel.Init(Mini);
    4078   PrevMiniPixel.Init(Mini);
     4077  MiniPixel := PixelPointer(Mini);
     4078  PrevMiniPixel := PixelPointer(Mini);
    40794079  for y := 0 to G.ly - 1 do
    40804080  begin
Note: See TracChangeset for help on using the changeset viewer.