Ignore:
Timestamp:
Nov 4, 2014, 8:57:21 AM (10 years ago)
Author:
chronos
Message:
  • Removed: Useless old method GetCellNeighbors. Cell neigbours can be now accessed directly.
  • Modified: Optimized canvas TextOut to not move pointer after text displaying.
  • Fixed: Computer inner moves were calculated incorrectly multiple times for same cells. This was slowing down calculation in particular for large maps.
  • Added: Used PersistentForm component to keep forms position and size. So far it not supports xmlconfig class.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r78 r79  
    219219procedure TFormMain.FormCreate(Sender: TObject);
    220220begin
    221   //PaintBox1.ControlStyle := PaintBox1.ControlStyle + [csOpaque];
     221  {$IFDEF Linux}
     222  PaintBox1.ControlStyle := PaintBox1.ControlStyle + [csOpaque];
     223  {$ENDIF}
    222224  //DoubleBuffered := True;
    223225  TempBitmap := TBitmap.Create;
     
    295297  Core.Game.Running := False;
    296298  SaveConfig(Core.XMLConfig1, 'FormMain');
     299  Core.PersistentForm.Save(Self);
    297300end;
    298301
     
    305308begin
    306309  LoadConfig(Core.XMLConfig1, 'FormMain');
     310  Core.PersistentForm.Load(Self, True);
    307311  ReloadView;
    308312  Redraw;
Note: See TracChangeset for help on using the changeset viewer.