Changeset 487 for trunk/MiniMap.pas


Ignore:
Timestamp:
Dec 8, 2023, 11:39:45 PM (11 months ago)
Author:
chronos
Message:
  • Added: Range checking for TPixelPointer record type.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MiniMap.pas

    r479 r487  
    283283  Bitmap.BeginUpdate;
    284284  MiniPixel := TPixelPointer.Create(Bitmap);
    285   PrevMiniPixel := TPixelPointer.Create(Bitmap, 0, -1);
     285  PrevMiniPixel := TPixelPointer.Create(Bitmap);
    286286
    287287  xx := ScaleToNative(Size.X);
     
    350350    end;
    351351    MiniPixel.NextLine;
    352     PrevMiniPixel.NextLine;
     352    if y > 0 then PrevMiniPixel.NextLine;
    353353  end;
    354354  Bitmap.EndUpdate;
Note: See TracChangeset for help on using the changeset viewer.