Ignore:
Timestamp:
Nov 22, 2012, 7:09:17 AM (11 years ago)
Author:
chronos
Message:
  • Added: Allow terminate solving process.
  • Fixed: Disable actions which can change maze during solving.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        33Lazes.lps
        44Lazes.dbg
         5Lazes
  • trunk/class/mazepainter.pas

    r6 r7  
    7070constructor TMazePainter.Create(const pMaze: TMaze; pCanvas: TCanvas);
    7171begin
     72  Bmp := TBitMap.Create;
     73
    7274  // Init the default drawing width and height
    7375  FCellDrawWidth := 15;
     
    9193destructor TMazePainter.Destroy;
    9294begin
    93   bmp.Free;
     95  FreeAndNil(Bmp);
    9496  inherited Destroy;
    9597end;
     
    122124  if isDirty then
    123125  begin
    124     //FreeAndNil(bmp);
    125     //bmp := TBitMap.Create;
    126126    bmp.SetSize(Width + 1, Height + 1);
    127127    Canvas := bmp.Canvas;
Note: See TracChangeset for help on using the changeset viewer.