Changeset 456 for trunk/MiniMap.pas
- Timestamp:
- May 30, 2023, 11:31:10 AM (18 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/MiniMap.pas
r455 r456 1 1 {$INCLUDE Switches.inc} 2 unit UMiniMap;2 unit MiniMap; 3 3 4 4 interface … … 37 37 38 38 uses 39 ScreenTools, UPixelPointer, Global, GameServer, IsoEngine, Tribes;39 ScreenTools, PixelPointer, Global, GameServer, IsoEngine, Tribes; 40 40 41 41 const … … 172 172 Bitmap.SetSize(Size.X * 2, Size.Y); 173 173 Bitmap.BeginUpdate; 174 MiniPixel := PixelPointer(Bitmap);174 MiniPixel := TPixelPointer.Create(Bitmap); 175 175 for y := 0 to ScaleToNative(Size.Y) - 1 do begin 176 176 for x := 0 to ScaleToNative(Size.X) - 1 do begin … … 203 203 if Mode = mmPicture then begin 204 204 Bitmap.BeginUpdate; 205 MiniPixel := PixelPointer(Bitmap);206 PrevMiniPixel := PixelPointer(Bitmap, 0, -1);205 MiniPixel := TPixelPointer.Create(Bitmap); 206 PrevMiniPixel := TPixelPointer.Create(Bitmap, 0, -1); 207 207 for y := 0 to ScaleToNative(Size.Y) - 1 do begin 208 208 for x := 0 to ScaleToNative(Size.X) - 1 do begin … … 264 264 Bitmap.SetSize(Size.X * 2, Size.Y); 265 265 Bitmap.BeginUpdate; 266 MiniPixel := PixelPointer(Bitmap);267 PrevMiniPixel := PixelPointer(Bitmap, 0, -1);266 MiniPixel := TPixelPointer.Create(Bitmap); 267 PrevMiniPixel := TPixelPointer.Create(Bitmap, 0, -1); 268 268 for y := 0 to ScaleToNative(Size.Y) - 1 do begin 269 269 for x := 0 to ScaleToNative(Size.X) - 1 do begin
Note:
See TracChangeset
for help on using the changeset viewer.