So I have a problem now with my XNA stuff, I'm not sure what the computer is doing here :/ , first off, a game is in Full Screen,
and I have setted the resolution:
width = graphics.PreferredBackBufferWidth = 900;
height = graphics.PreferredBackBufferHeight = 1300;
graphics.IsFullScreen = true;
I am now fighting with taking a screenshot and for some reason now that XNA is fullscreen taking a screenshot and pasteing it in paint doest work its all white idk why, so anyways I wanted to show you:
I made also some code to print mouse position
public void DrawHelp()
{
if (Keyboard.GetState().IsKeyDown(Keys.Tab))
{
spriteBatch.DrawString(Font, string.Format("MouseX: {0}", cursorRect.X),
new Vector2(10.0f, 35.0f), Color.Black, 0f, Vector2.Zero, 0.90f, SpriteEffects.None, 0f);
spriteBatch.DrawString(Font, string.Format("MouseY: {0}", cursorRect.Y),
new Vector2(10.0f, 50.0f), Color.Black, 0f, Vector2.Zero, 0.90f, SpriteEffects.None, 0f);
}
}
and well as noted above my width is (SHOULD BE) = 900, but in-game, it really isn't. The first thing that is telling me that it isn't is drawing my menu buttons which arent on the middle of a screen (button.X = (width/2 -(button.Width / 2))
// width of my buttons is 150 and the reason i did that is
// becouse when setting the drawing coordinates it always uses the upper left corner of the texture
buttons are way too much to the left side, but their coordinates arent wrong, what is wrong is the window size that is different than what I setted it to be. But another thing that is telling me for sure that width is not 900 and height is not 1300 is that
becouse when I go wayyy to the left with my mouse, MouseX: 1279 and when I go at the bottom of the window with my cursor its
MouseY: 959.
How can that be so? And what is a solution for this problem? Thanks in advanced