mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Set minimum window size (to 320 x 240)
This sets the minimum window size (to 320 x 240), so that the window cannot be resized to lower than that. This is because there's no utility in having a game window smaller than that, and it provides a bonus convenience of being able to resize the game to exactly 320x240 without needing to be exactly precise about it. This idea was suggested by Dav999.
This commit is contained in:
parent
fbc9b3ddd7
commit
2525017990
1 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,8 @@ void Screen::init(const struct ScreenSettings* settings)
|
||||||
SDL_SetWindowTitle(m_window, "VVVVVV");
|
SDL_SetWindowTitle(m_window, "VVVVVV");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SDL_SetWindowMinimumSize(m_window, SCREEN_WIDTH_PIXELS, SCREEN_HEIGHT_PIXELS);
|
||||||
|
|
||||||
LoadIcon();
|
LoadIcon();
|
||||||
|
|
||||||
badSignalEffect = settings->badSignal;
|
badSignalEffect = settings->badSignal;
|
||||||
|
|
Loading…
Reference in a new issue