Changeset 496 for trunk/MiniMap.pas


Ignore:
Timestamp:
Dec 18, 2023, 10:31:54 PM (11 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MiniMap.pas

    r488 r496  
    121121  if LoadGraphicFile(Bitmap, ImageFileName, [gfNoError]) then
    122122  begin
    123     if Bitmap.width div 2 > MaxWidthMapLogo then
    124       Bitmap.width := MaxWidthMapLogo * 2;
    125     if Bitmap.height > MaxHeightMapLogo then
    126       Bitmap.height := MaxHeightMapLogo;
    127     Size.X := Bitmap.width div 2;
    128     Size.Y := Bitmap.height;
     123    if Bitmap.Width div 2 > MaxWidthMapLogo then
     124      Bitmap.Width := MaxWidthMapLogo * 2;
     125    if Bitmap.Height > MaxHeightMapLogo then
     126      Bitmap.Height := MaxHeightMapLogo;
     127    Size.X := Bitmap.Width div 2;
     128    Size.Y := Bitmap.Height;
    129129  end else begin
    130130    Mode := mmNone;
Note: See TracChangeset for help on using the changeset viewer.