I’ve been messing about with Monogame.Extended and have found a problem - in the demo for Sprites, after a window resize the spikey ball sprite is incorrectly offset from the mouse. At position 0,0 it is fine, but as you move the mouse cursor to the right or bottom of the client window, the sprite becomes more and more offset from the cursor.
EDIT: Never mind. After messing some more, I found out that
-
This is a monogame behavior, not just limited to .Extended.
-
After a window resize, the following code fixes the problem
graphics.PreferredBackBufferWidth = Window.ClientBounds.Width;
graphics.PreferredBackBufferHeight = Window.ClientBounds.Height;
graphics.ApplyChanges();
Whoops. Simple. This post can be deleted.