10 Replies - 3559 Views - Last Post: 06 June 2011 - 01:28 PM

#1 jase kiw  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 63
  • Joined: 09-December 09

maximizing and changing screen resolution, how to?

Posted 06 June 2011 - 10:14 AM

hello, i was wondering how i could maximize the window and then change the screen resolution to the size of the game, so that i don't get black bars, if someone could help me that would be awesome! (:
Is This A Good Question/Topic? 0
  • +

Replies To: maximizing and changing screen resolution, how to?

#2 Kilorn  Icon User is offline

  • XNArchitect
  • member icon



Reputation: 1357
  • View blog
  • Posts: 3,528
  • Joined: 03-May 10

Re: maximizing and changing screen resolution, how to?

Posted 06 June 2011 - 10:43 AM

I thought this question was answered in this thread. If the issue wasn't resolved, please show us the code that you've written to attempt this and let us know what errors, if any, or if the output is just not what you expected.
Was This Post Helpful? 0
  • +
  • -

#3 jase kiw  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 63
  • Joined: 09-December 09

Re: maximizing and changing screen resolution, how to?

Posted 06 June 2011 - 11:15 AM

that thread i was asking how to resize the window, i got that covered but i don't know how to maximize or set the resolution of the screen of the computer not the window.
Was This Post Helpful? 0
  • +
  • -

#4 Kilorn  Icon User is offline

  • XNArchitect
  • member icon



Reputation: 1357
  • View blog
  • Posts: 3,528
  • Joined: 03-May 10

Re: maximizing and changing screen resolution, how to?

Posted 06 June 2011 - 11:28 AM

Maximize as in make the game full screen, or do you want to make the window the same size as the computer's current resolution without going full screen?
Was This Post Helpful? 0
  • +
  • -

#5 jase kiw  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 63
  • Joined: 09-December 09

Re: maximizing and changing screen resolution, how to?

Posted 06 June 2011 - 11:50 AM

what would be the difference? i would prefer it going full screen
Was This Post Helpful? 0
  • +
  • -

#6 Kilorn  Icon User is offline

  • XNArchitect
  • member icon



Reputation: 1357
  • View blog
  • Posts: 3,528
  • Joined: 03-May 10

Re: maximizing and changing screen resolution, how to?

Posted 06 June 2011 - 11:56 AM

Fullscreen hides the window interface so that you can't see any of it. As if you were playing a PC game in fullscreen mode as opposed to windowed mode. To go fullscreen, there's a boolean value called isFullScreen that's part of the GraphicsDeviceManager class that handles fullscreen. All you have to do is set it to true in the constructor of the game1 class.
Was This Post Helpful? 1
  • +
  • -

#7 jase kiw  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 63
  • Joined: 09-December 09

Re: maximizing and changing screen resolution, how to?

Posted 06 June 2011 - 11:58 AM

thx, let me try it out
Was This Post Helpful? 0
  • +
  • -

#8 jase kiw  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 63
  • Joined: 09-December 09

Re: maximizing and changing screen resolution, how to?

Posted 06 June 2011 - 12:10 PM

works great thx (:
Was This Post Helpful? 0
  • +
  • -

#9 jase kiw  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 63
  • Joined: 09-December 09

Re: maximizing and changing screen resolution, how to?

Posted 06 June 2011 - 12:47 PM

since your here, how would i make a string be displayed for debugging purposes?
Was This Post Helpful? 0
  • +
  • -

#10 Kilorn  Icon User is offline

  • XNArchitect
  • member icon



Reputation: 1357
  • View blog
  • Posts: 3,528
  • Joined: 03-May 10

Re: maximizing and changing screen resolution, how to?

Posted 06 June 2011 - 12:54 PM

DrawString method uses a SpriteFont to draw text to the screen at a desired position. This should work fine for debugging purposes.
Was This Post Helpful? 1
  • +
  • -

#11 jase kiw  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 63
  • Joined: 09-December 09

Re: maximizing and changing screen resolution, how to?

Posted 06 June 2011 - 01:28 PM

kk ill try it out

could you give some sample code to get me started?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1