File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -95,9 +95,9 @@ public override void Draw(GameTime gameTime)
9595 {
9696 for ( int y = 0 ; y < Grid . NumberOfCellsY ; y ++ )
9797 {
98- Rectangle cell = new Rectangle ( ( int ) ( Position . X + x * Grid . CellWidth ) ,
99- ( int ) ( Position . Y + y * Grid . CellHeight ) ,
100- ( int ) Grid . CellWidth , ( int ) Grid . CellHeight ) ;
98+ RectangleF cell = new RectangleF ( Position . X + x * Grid . CellWidth , Position . Y + y * Grid . CellHeight ,
99+ Grid . CellWidth , Grid . CellHeight ) ;
100+
101101 int l = Grid . Get ( new Point ( x , y ) ) . Length ;
102102
103103 Color c ;
Original file line number Diff line number Diff line change 2626// ***************************************************************************
2727
2828using System ;
29+ using System . Security . Principal ;
2930using Microsoft . Xna . Framework ;
3031using Microsoft . Xna . Framework . Graphics ;
3132
@@ -49,6 +50,7 @@ public Main()
4950
5051 Window . AllowUserResizing = true ;
5152 Window . Position = Point . Zero ;
53+ IsMouseVisible = true ;
5254 }
5355
5456 protected override void Initialize ( )
You can’t perform that action at this time.
0 commit comments