Skip to content

Commit

Permalink
Merge pull request yvt#1040 from devnexen/sdl_window_simpl
Browse files Browse the repository at this point in the history
refactor(gui): remove redundant temporary variables
  • Loading branch information
yvt authored Aug 18, 2022
2 parents e3aa033 + 0ce5093 commit 3958eb6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Sources/Gui/SDLRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3958eb6

Please sign in to comment.