Changeset 79 for trunk/Forms


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.
Location:
trunk/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.lfm

    r76 r79  
    130130  object MainMenu1: TMainMenu
    131131    Images = Core.ImageListSmall
    132     left = 72
     132    left = 224
    133133    top = 48
    134134    object MenuItem1: TMenuItem
  • 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.