Ignore:
Timestamp:
Jan 6, 2024, 9:33:35 AM (4 months ago)
Author:
chronos
Message:
  • Modified: Use Floor in ScaleFromNative to avoid getting out of range values. Incorrect pixels visible in bottom part of minimap.
File:
1 edited

Legend:

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

    r519 r520  
    110110function ScaleFromNative(Value: Integer): Integer;
    111111begin
    112   Result := Round(Value * 96 / ScreenInfo.Dpi);
     112  Result := Floor(Value * 96 / ScreenInfo.Dpi);
    113113end;
    114114
Note: See TracChangeset for help on using the changeset viewer.