Ignore:
Timestamp:
Jan 10, 2026, 12:15:35 PM (2 months 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/LocalPlayer/Draft.pas

    r684 r717  
    9595  Template := TBitmap.Create;
    9696  Template.PixelFormat := TPixelFormat.pf24bit;
    97   LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'MiliRes.png',
     97  LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'MiliRes' + PngExt,
    9898    [gfNoGamma]);
    9999end;
     
    415415procedure TDraftDlg.SetDomain(D: Integer);
    416416
    417   function Prio(fix: Integer): Integer;
     417  function Prio(Fix: Integer): Integer;
    418418  var
    419419    FeaturePreq: Integer;
    420420  begin
    421     FeaturePreq := Feature[fix].Preq;
     421    FeaturePreq := Feature[Fix].Preq;
    422422    Assert(FeaturePreq <> preNA);
    423     if fix < mcFirstNonCap then
    424       Result := 10000 + fix
     423    if Fix < mcFirstNonCap then
     424      Result := 10000 + Fix
    425425    else if FeaturePreq = preNone then
    426426      Result := 20000
     
    429429    else
    430430      Result := 30000 + AdvValue[FeaturePreq];
    431     if not (fix in AutoFeature) then
     431    if not (Fix in AutoFeature) then
    432432      Inc(Result, 90000);
    433433  end;
     
    471471begin
    472472  Domain := dGround;
    473   while (Domain < dAir) and (upgrade[Domain, 0].Preq <> preNone) and
    474     (MyRO.Tech[upgrade[Domain, 0].Preq] < tsApplicable) do
     473  while (Domain < dAir) and (Upgrade[Domain, 0].Preq <> preNone) and
     474    (MyRO.Tech[Upgrade[Domain, 0].Preq] < tsApplicable) do
    475475    Inc(Domain);
    476476
     
    478478  MaxLines := 0;
    479479  for D := 0 to nDomains - 1 do
    480     if (upgrade[D, 0].Preq = preNone) or
    481       (MyRO.Tech[upgrade[D, 0].Preq] >= tsApplicable) then
     480    if (Upgrade[D, 0].Preq = preNone) or
     481      (MyRO.Tech[Upgrade[D, 0].Preq] >= tsApplicable) then
    482482    begin
    483483      Count := 0;
     
    519519  begin
    520520    for D := 0 to nDomains - 1 do
    521       if (D <> Domain) and ((upgrade[D, 0].Preq = preNone) or
    522         (MyRO.Tech[upgrade[D, 0].Preq] >= tsApplicable)) and
     521      if (D <> Domain) and ((Upgrade[D, 0].Preq = preNone) or
     522        (MyRO.Tech[Upgrade[D, 0].Preq] >= tsApplicable)) and
    523523        (X >= xDomain + D * DomainPitch) and
    524524        (X < xDomain + D * DomainPitch + 36) and (Y >= yDomain) and
Note: See TracChangeset for help on using the changeset viewer.