Changeset 708
- Timestamp:
- Aug 19, 2025, 9:46:32 PM (19 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MiniMap.pas
r707 r708 239 239 fTerrain, I]; 240 240 if (PByte(MiniPixel.Pixel) >= Bitmap.RawImage.Data) and 241 (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * MiniPixel.BytesPerLine) ) then begin241 (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * MiniPixel.BytesPerLine) - 1) then begin 242 242 MiniPixel.PixelB := ((CM shr 16) and $FF) * Brightness div 3; 243 243 MiniPixel.PixelG := ((CM shr 8) and $FF) * Brightness div 3; … … 283 283 PrevMiniPixel.SetX(XM); 284 284 if (PByte(PrevMiniPixel.Pixel) >= Bitmap.RawImage.Data) and 285 (PByte(PrevMiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * PrevMiniPixel.BytesPerLine) ) then begin285 (PByte(PrevMiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * PrevMiniPixel.BytesPerLine) - 1) then begin 286 286 PrevMiniPixel.PixelB := CM shr 16; 287 287 PrevMiniPixel.PixelG:= CM shr 8 and $FF; … … 296 296 CM := Colors[Tile and fTerrain, I]; 297 297 if (PByte(MiniPixel.Pixel) >= Bitmap.RawImage.Data) and 298 (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * MiniPixel.BytesPerLine) ) then begin298 (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * MiniPixel.BytesPerLine) - 1) then begin 299 299 MiniPixel.PixelB := (CM shr 16) and $ff; 300 300 MiniPixel.PixelG := (CM shr 8) and $ff; … … 368 368 PrevMiniPixel.SetX(XM); 369 369 if (PByte(PrevMiniPixel.Pixel) >= Bitmap.RawImage.Data) and 370 (PByte(PrevMiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * PrevMiniPixel.BytesPerLine) ) then begin370 (PByte(PrevMiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * PrevMiniPixel.BytesPerLine) - 1) then begin 371 371 PrevMiniPixel.PixelB := (CM shr 16) and $ff; 372 372 PrevMiniPixel.PixelG := (CM shr 8) and $ff; … … 393 393 end; 394 394 if (PByte(MiniPixel.Pixel) >= Bitmap.RawImage.Data) and 395 (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * MiniPixel.BytesPerLine) ) then begin395 (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * MiniPixel.BytesPerLine) - 1) then begin 396 396 MiniPixel.PixelB := (CM shr 16) and $ff; 397 397 MiniPixel.PixelG := (CM shr 8) and $ff;
Note:
See TracChangeset
for help on using the changeset viewer.