mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
1f2705c4bc
commit
04527ad08e
1 changed files with 2 additions and 1 deletions
|
@ -1413,7 +1413,8 @@ int32_t setvideomode(int32_t x, int32_t y, int32_t c, int32_t fs)
|
||||||
#endif // defined USE_OPENGL
|
#endif // defined USE_OPENGL
|
||||||
{
|
{
|
||||||
// init
|
// 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));
|
((fs & 1) ? SDL_WINDOW_FULLSCREEN : 0));
|
||||||
if (!sdl_window)
|
if (!sdl_window)
|
||||||
SDL2_VIDEO_ERR("SDL_CreateWindow");
|
SDL2_VIDEO_ERR("SDL_CreateWindow");
|
||||||
|
|
Loading…
Reference in a new issue