Merge pull request #1040 from devnexen/sdl_window_simpl
refactor(gui): remove redundant temporary variables
This commit is contained in:
commit
3958eb63fd
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user