View Single Post
  #4 (permalink)  
Old May 18th, 2007, 04:29 PM
mcleod mcleod is offline
Registered User
Join Date: May 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

I must have something defined in the wrong place because it wouldn't compile due to not finding width/height. I replaced it with graphics.GraphicsDevice.Viewport.Width like you said and that worked fine.

Thanks for the reply!

quote:Originally posted by phsarjk
 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