summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2021-02-04 07:00:06 -0800
committerSam Lantinga <slouken@libsdl.org>2021-02-04 07:00:06 -0800
commit7aafe7586322bef752fb70a86f0bca6015a0c9fa (patch)
tree64a0c3ba457ecdcdd496b8259afc94bbd7389a63
parent640fa6145110c5a9917e199dcc862526a0acd305 (diff)
downloadsdl-7aafe7586322bef752fb70a86f0bca6015a0c9fa.tar.gz
Backed out changeset 1cde3dd0f44d - this breaks windows which are created and then set to FULLSCREEN_DESKTOP
-rw-r--r--src/video/SDL_video.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index 8786bbd7c..d750a356c 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -1480,13 +1480,6 @@ SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
return NULL;
}
- /* Some platforms don't have a window manager */
- if (SDL_strcmp(_this->name, "KMSDRM") == 0) {
- if (!(flags & SDL_WINDOW_FULLSCREEN)) {
- flags |= SDL_WINDOW_FULLSCREEN;
- }
- }
-
/* Some platforms have OpenGL enabled by default */
#if (SDL_VIDEO_OPENGL && __MACOSX__) || (__IPHONEOS__ && !TARGET_OS_MACCATALYST) || __ANDROID__ || __NACL__
if (!_this->is_dummy && !(flags & SDL_WINDOW_VULKAN) && !(flags & SDL_WINDOW_METAL) && !SDL_IsVideoContextExternal()) {