sdlayer: Work around warning: signed and unsigned type in conditional expression [-Wsign-compare] indirectly caused by the SDL 2.0.5 headers making all preprocessor macro literals unsigned.

git-svn-id: https://svn.eduke32.com/eduke32@5918 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2016-10-29 16:59:26 +00:00
parent a25198d913
commit 42bb07cace

View file

@ -1614,8 +1614,8 @@ int32_t setvideomode(int32_t x, int32_t y, int32_t c, int32_t fs)
/* HACK: changing SDL GL attribs only works before surface creation, /* HACK: changing SDL GL attribs only works before surface creation,
so we have to create a new surface in a different format first so we have to create a new surface in a different format first
to force the surface we WANT to be recreated instead of reused. */ to force the surface we WANT to be recreated instead of reused. */
sdl_window = SDL_CreateWindow("", windowpos ? windowx : SDL_WINDOWPOS_CENTERED, sdl_window = SDL_CreateWindow("", windowpos ? windowx : (int)SDL_WINDOWPOS_CENTERED,
windowpos ? windowy : SDL_WINDOWPOS_CENTERED, x, y, windowpos ? windowy : (int)SDL_WINDOWPOS_CENTERED, x, y,
((fs & 1) ? SDL_WINDOW_FULLSCREEN : 0) | SDL_WINDOW_OPENGL); ((fs & 1) ? SDL_WINDOW_FULLSCREEN : 0) | SDL_WINDOW_OPENGL);
if (sdl_window) if (sdl_window)
@ -1641,8 +1641,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("", windowpos ? windowx : SDL_WINDOWPOS_CENTERED, sdl_window = SDL_CreateWindow("", windowpos ? windowx : (int)SDL_WINDOWPOS_CENTERED,
windowpos ? windowy : SDL_WINDOWPOS_CENTERED, x, y, windowpos ? windowy : (int)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");