Skip to content

Commit

Permalink
Make game use 80% of screen size
Browse files Browse the repository at this point in the history
  • Loading branch information
ShyRed committed Apr 2, 2016
1 parent aa4d6d7 commit 051f6a6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions BreakoutParty/BreakoutPartyGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,13 @@ public BreakoutPartyGame()
{
Graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
Graphics.PreferredBackBufferWidth = 800;
Graphics.PreferredBackBufferHeight = 600;

Graphics.PreferredBackBufferWidth = (int)(GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width * 0.8f);
Graphics.PreferredBackBufferHeight = (int)(GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height * 0.8f);
}

protected override void Initialize()
{
base.Initialize();

Data = Gamedata.Load();

Batch = new SpriteBatch(Graphics.GraphicsDevice);
Expand Down

0 comments on commit 051f6a6

Please sign in to comment.