Check that window is initialized when setting fullscreen
This commit is contained in:
parent
bd8066313c
commit
8d6ca11241
1 changed files with 1 additions and 1 deletions
|
@ -1049,7 +1049,7 @@ bool CVideo::detect_video_settings(std::pair<int,int>& resolution, int& bpp, int
|
|||
|
||||
void CVideo::set_fullscreen(bool ison)
|
||||
{
|
||||
if (isFullScreen() != ison) {
|
||||
if (window && isFullScreen() != ison) {
|
||||
const std::pair<int,int>& res = preferences::resolution();
|
||||
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue