Changeset 533 for trunk/Start.pas


Ignore:
Timestamp:
Apr 12, 2024, 8:58:58 PM (7 months ago)
Author:
chronos
Message:
  • Fixed: Eliminated unwanted second map resize and redraw during displaying of the main game window.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r531 r533  
    407407      else ScreenMode := 1;
    408408    FullScreen := ScreenMode > 0;
     409    if ValueExists('TermLeft') then TermBounds.Left := ReadInteger('TermLeft')
     410      else TermBounds.Left := 0;
     411    if ValueExists('TermTop') then TermBounds.Top := ReadInteger('TermTop')
     412      else TermBounds.Top := 0;
     413    if ValueExists('TermWidth') then TermBounds.Width := ReadInteger('TermWidth')
     414      else TermBounds.Width := 800;
     415    if ValueExists('TermHeight') then TermBounds.Height := ReadInteger('TermHeight')
     416      else TermBounds.Height := 480;
     417
    409418    if ValueExists('MultiControl') then
    410419      MultiControl := ReadInteger('MultiControl')
     
    444453    if FullScreen then WriteInteger('ScreenMode', 1)
    445454      else WriteInteger('ScreenMode', 0);
     455    WriteInteger('TermWidth', TermBounds.Width);
     456    WriteInteger('TermHeight', TermBounds.Height);
     457    WriteInteger('TermLeft', TermBounds.Left);
     458    WriteInteger('TermTop', TermBounds.Top);
    446459    WriteInteger('MultiControl', MultiControl);
    447460    WriteInteger('StartTab', Integer(ShowTab));
Note: See TracChangeset for help on using the changeset viewer.