From 0ce509356ad00d1f712c439d6587da0a8064548e Mon Sep 17 00:00:00 2001 From: David Carlier Date: Wed, 17 Aug 2022 21:36:26 +0100 Subject: [PATCH] sdl windows little code simplification. --- Sources/Gui/SDLRunner.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Sources/Gui/SDLRunner.cpp b/Sources/Gui/SDLRunner.cpp index 06356f0b..dde49fab 100644 --- a/Sources/Gui/SDLRunner.cpp +++ b/Sources/Gui/SDLRunner.cpp @@ -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();