GUI window now attempts to open centered on screen, if running under X11. Fullsceen modes from the console are unaffected

This commit is contained in:
Dimitris Panokostas 2018-01-28 20:24:50 +01:00
parent dc0a410a7e
commit 7771596e16

View file

@ -307,10 +307,10 @@ int graphics_setup(void)
if (sdlWindow == nullptr)
{
sdlWindow = SDL_CreateWindow("Amiberry",
SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
0,
0,
SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_CENTERED,
800,
480,
//SDL_WINDOW_FULLSCREEN);
//SDL_WINDOW_FULLSCREEN_DESKTOP);
SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE);