mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-30 08:01:02 +00:00
GLimp_Init(): Log r_mode and resolution used for creating window
This commit is contained in:
parent
5f3356627e
commit
eff9fd6ac3
1 changed files with 9 additions and 1 deletions
|
@ -241,8 +241,16 @@ bool GLimp_Init(glimpParms_t parms) {
|
||||||
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, parms.multiSamples);
|
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, parms.multiSamples);
|
||||||
|
|
||||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
#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)
|
#if SDL_VERSION_ATLEAST(2, 0, 4)
|
||||||
// try to put the window on the display the mousecursor currently is on
|
// try to put the window on the display the mousecursor currently is on
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue