Changeset 5
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 2 2 Lazes.exe 3 3 Lazes.lps 4 Lazes.dbg
-
- Property svn:ignore
-
trunk/Lazes.lpi
r4 r5 86 86 <Item1> 87 87 <PackageName Value="MazePackage"/> 88 <DefaultFilename Value="class\MazePackage.lpk" Prefer="True"/> 88 89 </Item1> 89 90 <Item2> -
trunk/class/mazepainter.pas
r1 r5 124 124 FreeAndNil(bmp); 125 125 bmp := TBitMap.Create; 126 bmp.Width := Width+1; 127 bmp.Height := Height+1; 126 bmp.SetSize(Width + 1, Height + 1); 128 127 Canvas := bmp.Canvas; 129 128 try 129 Bmp.BeginUpdate(True); 130 130 for row := 0 to Maze.Height-1 do 131 131 for col := 0 to Maze.Width-1 do … … 179 179 end; 180 180 181 finally 182 Bmp.EndUpdate; 183 end; 181 184 // Fully refreshed 182 185 isDirty := false; … … 184 187 185 188 // Draw bitmap 186 FCanvas.CopyRect(Rect(pOffsetX,pOffsetY,pOffsetX+Width+1,pOffsetY+Height+1), bmp.Canvas, Rect(0,0,Width+1,Height+1)); 189 FCanvas.Draw(pOffsetX, pOffsetY, Bmp); // Stretch draw should be faster 190 //FCanvas.CopyRect(Rect(pOffsetX,pOffsetY,pOffsetX+Width+1,pOffsetY+Height+1), bmp.Canvas, Rect(0,0,Width+1,Height+1)); 187 191 end; 188 192
Note:
See TracChangeset
for help on using the changeset viewer.