Support r_windowpositioning in 8-bit.

git-svn-id: https://svn.eduke32.com/eduke32@4896 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2015-01-11 04:53:59 +00:00
parent 1f2705c4bc
commit 04527ad08e
1 changed files with 2 additions and 1 deletions

View File

@ -1413,7 +1413,8 @@ int32_t setvideomode(int32_t x, int32_t y, int32_t c, int32_t fs)
#endif // defined USE_OPENGL
{
// init
sdl_window = SDL_CreateWindow("", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, x, y,
sdl_window = SDL_CreateWindow("", windowpos ? windowx : SDL_WINDOWPOS_CENTERED,
windowpos ? windowy : SDL_WINDOWPOS_CENTERED, x, y,
((fs & 1) ? SDL_WINDOW_FULLSCREEN : 0));
if (!sdl_window)
SDL2_VIDEO_ERR("SDL_CreateWindow");