View Single Post
  #2 (permalink)  
Old May 17th, 2007, 04:09 PM
phsarjk phsarjk is offline
Registered User
Join Date: May 2007
Location: , , Denmark.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts

I would think it was in LoadGraphicsContent, outside the if statement, havent checked though. It would be the logical place to put it, as LoadGraphicsContent is called everytime the graphics context is invalidated, such as when the viewport is resized, minimized or lost somehow.

You could always replace it with graphics.GraphicsDevice.Viewport.Width