Skip to content

Commit

Permalink
sdl windows little code simplification.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Aug 17, 2022
1 parent e3aa033 commit 0ce5093
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 0ce5093

Please sign in to comment.