From eff9fd6ac3bf9742fb9a26558817ef86a2d93cf1 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Sun, 16 Jan 2022 19:39:35 +0100 Subject: [PATCH] GLimp_Init(): Log r_mode and resolution used for creating window --- neo/sys/glimp.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/neo/sys/glimp.cpp b/neo/sys/glimp.cpp index ae392d76..6166796c 100644 --- a/neo/sys/glimp.cpp +++ b/neo/sys/glimp.cpp @@ -241,8 +241,16 @@ bool GLimp_Init(glimpParms_t parms) { SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, parms.multiSamples); #if SDL_VERSION_ATLEAST(2, 0, 0) - int displayIndex = 0; + const char* windowMode = ""; + if(r_fullscreen.GetBool()) { + windowMode = r_fullscreenDesktop.GetBool() ? "desktop-fullscreen-" : "fullscreen-"; + } + + common->Printf("Will create a %swindow with resolution %dx%d (r_mode = %d)\n", + windowMode, parms.width, parms.height, r_mode.GetInteger()); + + int displayIndex = 0; #if SDL_VERSION_ATLEAST(2, 0, 4) // try to put the window on the display the mousecursor currently is on {