Changeset 456 for trunk/LocalPlayer/Wonders.pas
- Timestamp:
- May 30, 2023, 11:31:10 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Wonders.pas
r447 r456 38 38 39 39 uses 40 Term, ClientTools, Help, Tribes, UPixelPointer;40 Term, ClientTools, Help, Tribes, PixelPointer; 41 41 42 42 {$R *.lfm} … … 110 110 Height := ScaleToNative(128); 111 111 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); 116 116 for Y := 0 to Height - 1 do begin 117 117 for X := 0 to Width - 1 do begin … … 160 160 x0Src := (I mod 7) * xSizeBig; 161 161 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)); 164 164 for Y := 0 to ScaleToNative(ySizeBig) - 1 do begin 165 165 for X := 0 to ScaleToNative(xSizeBig) - 1 do begin
Note:
See TracChangeset
for help on using the changeset viewer.