Ignore:
Timestamp:
Jan 10, 2026, 12:15:35 PM (4 weeks ago)
Author:
chronos
Message:

Merged revision(s) 705-716 from trunk:

  • Fixed: Subversion properties.
  • 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.
  • Fixed: Crashes with mini map drawing in Start screen with some DPI resolutions.
  • Added: Enter key confirms battle dialog window.
  • Fixed: Potential battle dialog drawing issue.
  • Modified: Code cleanup.
  • Fixed: Disable auto selection of input text in message dialog.
  • Fixed: Edit boxes to have black background and blue selection.
  • Fixed: Automatically create Saved and Maps user data directories if they don't exist yet.
  • Modified: Code cleanup.
  • Fixed: Wrong unit models opened after click on Military report foreign units.
  • Modified: Do not store .png file extension in graphics names in book files. This is for compatibility with older C-evo versions.
  • Fixed: Support both books with graphics name with and without .png file extensions.
Location:
branches/zoom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/zoom

  • branches/zoom/MiniMap.pas

    r704 r717  
    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;
     
    239239          fTerrain, I];
    240240        if (PByte(MiniPixel.Pixel) >= Bitmap.RawImage.Data) and
    241         (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * MiniPixel.BytesPerLine)) then begin
     241        (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * MiniPixel.BytesPerLine) - 1) then begin
    242242          MiniPixel.PixelB := ((CM shr 16) and $FF) * Brightness div 3;
    243243          MiniPixel.PixelG := ((CM shr 8) and $FF) * Brightness div 3;
     
    283283              PrevMiniPixel.SetX(XM);
    284284              if (PByte(PrevMiniPixel.Pixel) >= Bitmap.RawImage.Data) and
    285               (PByte(PrevMiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * PrevMiniPixel.BytesPerLine)) then begin
     285              (PByte(PrevMiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * PrevMiniPixel.BytesPerLine) - 1) then begin
    286286                PrevMiniPixel.PixelB := CM shr 16;
    287287                PrevMiniPixel.PixelG:= CM shr 8 and $FF;
     
    296296            CM := Colors[Tile and fTerrain, I];
    297297          if (PByte(MiniPixel.Pixel) >= Bitmap.RawImage.Data) and
    298           (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * MiniPixel.BytesPerLine)) then begin
     298          (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * MiniPixel.BytesPerLine) - 1) then begin
    299299            MiniPixel.PixelB := (CM shr 16) and $ff;
    300300            MiniPixel.PixelG := (CM shr 8) and $ff;
     
    368368              PrevMiniPixel.SetX(XM);
    369369              if (PByte(PrevMiniPixel.Pixel) >= Bitmap.RawImage.Data) and
    370               (PByte(PrevMiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * PrevMiniPixel.BytesPerLine)) then begin
     370              (PByte(PrevMiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * PrevMiniPixel.BytesPerLine) - 1) then begin
    371371                PrevMiniPixel.PixelB := (CM shr 16) and $ff;
    372372                PrevMiniPixel.PixelG := (CM shr 8) and $ff;
     
    393393          end;
    394394          if (PByte(MiniPixel.Pixel) >= Bitmap.RawImage.Data) and
    395           (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * MiniPixel.BytesPerLine)) then begin
     395          (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + YY * MiniPixel.BytesPerLine) - 1) then begin
    396396            MiniPixel.PixelB := (CM shr 16) and $ff;
    397397            MiniPixel.PixelG := (CM shr 8) and $ff;
Note: See TracChangeset for help on using the changeset viewer.