x11: Allow starting in fullscreen via config

This commit is contained in:
Jan Holthuis 2015-08-21 02:07:03 +02:00
parent dc6758d847
commit 4dee5652ee
1 changed files with 28 additions and 26 deletions

View File

@ -244,9 +244,11 @@ void x11_window_create()
#ifdef TARGET_PANDORA
x11_width = 800;
x11_height = 480;
x11_fullscreen = true;
#else
x11_width = cfgLoadInt("x11", "width", WINDOW_WIDTH);
x11_height = cfgLoadInt("x11", "height", WINDOW_HEIGHT);
x11_fullscreen = (cfgLoadInt("x11", "fullscreen", 0) > 0);
#endif
if (x11_width < 0 || x11_height < 0)
@ -272,6 +274,7 @@ void x11_window_create()
else
{
XMapWindow(x11Display, x11Window);
}
#if !defined(GLES)
#define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
@ -298,7 +301,6 @@ void x11_window_create()
die("Failed to create GL3.1 context\n");
}
#endif
}
XFlush(x11Display);