Ignore:
Timestamp:
Apr 16, 2024, 10:57:39 AM (4 weeks ago)
Author:
chronos
Message:
  • Fixed: Map drawing in case of fractional scaling.
File:
1 edited

Legend:

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

    r507 r538  
    9393
    9494resourcestring
    95   SOutOfRange = 'Pixel pointer out of range [X: %d. Y: %d]';
     95  SOutOfRange = 'Pixel pointer out of range [X: %d, Y: %d, Width: %d, Height: %d]';
    9696  SWrongBitmapSize = 'Wrong bitmap size [width: %d, height: %d]';
    9797
     
    160160    X := B - Y * BytesPerLine;
    161161    X := Floor(X / BytesPerPixel);
    162     raise Exception.Create(Format(SOutOfRange, [X, Y]));
     162    raise Exception.Create(Format(SOutOfRange, [X, Y, Width, Height]));
    163163  end;
    164164  {$ENDIF}
Note: See TracChangeset for help on using the changeset viewer.