sdl windows little code simplification.

master^2
David Carlier 2022-08-17 21:36:26 +01:00
parent e3aa0337ff
commit 0ce509356a
1 changed files with 1 additions and 4 deletions

View File

@ -479,11 +479,8 @@ namespace spades {
#endif
}
int w = width;
int h = height;
window = SDL_CreateWindow(caption.c_str(), SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_CENTERED, w, h, sdlFlags);
SDL_WINDOWPOS_CENTERED, width, height, sdlFlags);
if (!window) {
std::string msg = SDL_GetError();