SDL_CreateWindow() has been simplified and no longer takes a window position.
This commit is contained in:
1 parent
7905254087
commit
698dbd8464
51 files changed
+106
-326
No files matched your search
@@ -727,9 +727,7 @@ static int SDLCALL SDL_RendererEventWatch(void *userdata, SDL_Event *event)
|
||||
|
||||
int SDL_CreateWindowAndRenderer(int width, int height, Uint32 window_flags, SDL_Window **window, SDL_Renderer **renderer)
|
||||
{
|
||||
*window = SDL_CreateWindow(NULL, SDL_WINDOWPOS_UNDEFINED,
|
||||
SDL_WINDOWPOS_UNDEFINED,
|
||||
width, height, window_flags);
|
||||
*window = SDL_CreateWindow(NULL, width, height, window_flags);
|
||||
if (!*window) {
|
||||
*renderer = NULL;
|
||||
return -1;
|
||||
|
||||
Reference in new issue
Block a user