diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 5811ed90ee..05de90bfbc 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -1858,9 +1858,11 @@ static SDL_Window *SDL_CreateWindowInternal(const char *title, int x, int y, int } /* Some platforms blow up if the windows are too large. Raise it later? */ - if ((w > 16384) || (h > 16384)) { - SDL_SetError("Window is too large."); - return NULL; + if (w > 16384) { + w = 16384; + } + if (h > 16384) { + h = 16384; } if (SDL_WINDOWPOS_ISUNDEFINED(x) || SDL_WINDOWPOS_ISUNDEFINED(y) ||