Game Resolution and Window Size in sampleframework

When the user resize the window, I would like to fix the game resolution (800x600) so that I do not need to resize any buttons and 2D graphics. Also when the user change to fullscreen mode, I want the resolution to be fixed so that the display is the same as what we see in window mode.

Another problem is that when I show my project in different computers, problems occur when I click to maximize the window size or toggle Fullscreen/window mode. 1. When I click the maximize button on the top-right corner, all the color of the textures (Managed) change to white.

2. When I toggle to Fullscreen, the textures (Managed) cannot be shown, i.e, I cannot see anything on the screen

When I do testing in my computer, I cannot catch these problems and therefore I don't know how to solve it. Could anyone help me to solve the problem Thank you very much.



Answer this question

Game Resolution and Window Size in sampleframework

  • Game Resolution and Window Size in sampleframework