mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-28 01:21:35 +00:00
SDL_CreateWindow() has been simplified and no longer takes a window position.
This commit is contained in:
@@ -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