sdl windows little code simplification.
This commit is contained in:
parent
e3aa0337ff
commit
0ce509356a
@ -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