mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-28 15:39:10 +00:00
SDL_CreateWindow() has been simplified and no longer takes a window position.
This commit is contained in:
parent
7905254087
commit
698dbd8464
51 changed files with 106 additions and 326 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue