Ignore:
Timestamp:
May 30, 2023, 11:31:10 AM (18 months ago)
Author:
chronos
Message:
  • Modified: Removed U prefix from unit names.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Wonders.pas

    r447 r456  
    3838
    3939uses
    40   Term, ClientTools, Help, Tribes, UPixelPointer;
     40  Term, ClientTools, Help, Tribes, PixelPointer;
    4141
    4242{$R *.lfm}
     
    110110  Height := ScaleToNative(128);
    111111  Offscreen.BeginUpdate;
    112   Line[0] := PixelPointer(Offscreen, ScaleToNative(Center.X), ScaleToNative(Center.Y));
    113   Line[1] := PixelPointer(Offscreen, ScaleToNative(Center.X), ScaleToNative(Center.Y) - 1);
    114   Line[2] := PixelPointer(Offscreen, ScaleToNative(Center.X) - 1, ScaleToNative(Center.Y));
    115   Line[3] := PixelPointer(Offscreen, ScaleToNative(Center.X) - 1, ScaleToNative(Center.Y) - 1);
     112  Line[0] := TPixelPointer.Create(Offscreen, ScaleToNative(Center.X), ScaleToNative(Center.Y));
     113  Line[1] := TPixelPointer.Create(Offscreen, ScaleToNative(Center.X), ScaleToNative(Center.Y) - 1);
     114  Line[2] := TPixelPointer.Create(Offscreen, ScaleToNative(Center.X) - 1, ScaleToNative(Center.Y));
     115  Line[3] := TPixelPointer.Create(Offscreen, ScaleToNative(Center.X) - 1, ScaleToNative(Center.Y) - 1);
    116116  for Y := 0 to Height - 1 do begin
    117117    for X := 0 to Width - 1 do begin
     
    160160  x0Src := (I mod 7) * xSizeBig;
    161161  y0Src := (I div 7 + SystemIconLines) * ySizeBig;
    162   Src := PixelPointer(BigImp, ScaleToNative(x0Src), ScaleToNative(y0Src));
    163   Dst := PixelPointer(Offscreen, ScaleToNative(x0Dst), ScaleToNative(y0Dst));
     162  Src := TPixelPointer.Create(BigImp, ScaleToNative(x0Src), ScaleToNative(y0Src));
     163  Dst := TPixelPointer.Create(Offscreen, ScaleToNative(x0Dst), ScaleToNative(y0Dst));
    164164  for Y := 0 to ScaleToNative(ySizeBig) - 1 do begin
    165165    for X := 0 to ScaleToNative(xSizeBig) - 1 do begin
Note: See TracChangeset for help on using the changeset viewer.