Changeset 707 for trunk/MiniMap.pas


Ignore:
Timestamp:
Aug 19, 2025, 9:36:23 PM (28 hours ago)
Author:
chronos
Message:
  • Fixed: Better start screen location calculation for lower than 800x600 resolutions to make visible entire window.
  • Fixed: Memory overflow in minimap drawing with some higher DPI settings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MiniMap.pas

    r704 r707  
    200200            else CM := Colors[Tile and fTerrain, I];
    201201          if (PByte(MiniPixel.Pixel) >= Bitmap.RawImage.Data) and
    202           (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * MiniPixel.BytesPerLine)) then begin
     202          (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * MiniPixel.BytesPerLine) - 1) then begin
    203203            MiniPixel.PixelB := (CM shr 16) and $ff;
    204204            MiniPixel.PixelG := (CM shr 8) and $ff;
Note: See TracChangeset for help on using the changeset viewer.