Merge pull request #1040 from devnexen/sdl_window_simpl

refactor(gui): remove redundant temporary variables
master
yvt 2022-08-18 21:32:56 +09:00 committed by GitHub
commit 3958eb63fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();