Ignore:
Timestamp:
Dec 25, 2023, 12:01:22 PM (11 months ago)
Author:
chronos
Message:
  • Fixed: Range check error on main form minimization.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/DpiControls/Dpi.PixelPointer.pas

    r506 r507  
    148148{$IFOPT R+}
    149149var
     150  B: Integer;
    150151  X: Integer;
    151152  Y: Integer;
     
    155156  if (PByte(Pixel) < PByte(Data)) or
    156157    (PByte(Pixel) >= PByte(Data) + Height * BytesPerLine) then begin
    157     X := PByte(Pixel) - PByte(Data);
    158     Y := Floor(X / BytesPerLine);
    159     X := X - Y * BytesPerLine;
     158    B := PByte(Pixel) - PByte(Data);
     159    Y := Floor(B / BytesPerLine);
     160    X := B - Y * BytesPerLine;
    160161    X := Floor(X / BytesPerPixel);
    161162    raise Exception.Create(Format(SOutOfRange, [X, Y]));
Note: See TracChangeset for help on using the changeset viewer.