Ignore:
Timestamp:
Jan 10, 2026, 12:15:35 PM (3 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/Term.pas

    r704 r717  
    803803      Picture.pix := pixNoSlaves;
    804804    Picture.Hash := 0;
    805     Picture.GrName := 'StdUnits.png';
     805    Picture.GrName := 'StdUnits';
    806806    IsNew := True;
    807807  end
     
    14071407    if AILogo[P] = nil then
    14081408      AILogo[P] := TBitmap.Create;
    1409     if not LoadGraphicFile(AILogo[P], GetAppSharePath(Name + '.png'), [gfNoError]) then
     1409    if not LoadGraphicFile(AILogo[P], GetAppSharePath(Name + PngExt), [gfNoError]) then
    14101410    begin
    14111411      FreeAndNil(AILogo[P]);
     
    17661766  MainMap.SetOutput(Offscreen);
    17671767
    1768   HGrStdUnits := LoadGraphicSet('StdUnits.png');
     1768  HGrStdUnits := LoadGraphicSet('StdUnits' + PngExt);
    17691769  SmallImp := TBitmap.Create;
    17701770  SmallImp.PixelFormat := TPixelFormat.pf24bit;
     
    19191919            pix := pixNoSlaves;
    19201920          Hash := 0;
    1921           GrName := 'StdUnits.png';
     1921          GrName := 'StdUnits';
    19221922          Tribe[p1].SetModelPicture(Picture, True);
    19231923        end;
     
    29282928          InitTurn(NewPlayer);
    29292929          DipMem[Me].pContact := -1;
    2930           (* if (Me=0) and (MyRO.Alive and (1 shl Me)=0)} then
     2930          (* if (Me = 0) and (MyRO.Alive and (1 shl Me) = 0)} then
    29312931            begin
    2932             if SimpleQuery(Phrases.Lookup('RESIGN'))=mrIgnore then
    2933             Server(sResign,Me,0,nil^)
    2934             else Server(sBreak,Me,0,nil^)
     2932            if SimpleQuery(Phrases.Lookup('RESIGN')) = mrIgnore then
     2933            Server(sResign, Me, 0, nil^)
     2934            else Server(sBreak, Me, 0, nil^)
    29352935            end
    29362936            else Play('TURNSTART'); *)
Note: See TracChangeset for help on using the changeset viewer.