Resize SDL2 window?

c++, sdl, sdl-2, window

Solution

You may look at the wiki doc: SDL_SetWindowSize

Problem

Just made the jump from SDL1.2 to SDL2, been converting my code but couldn't figure out how to resize the window. Here's the code I have now: ``` SDL_DestroyWindow(Window); Window = SDL_CreateWindow("Test", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, ScreenSizeX, ScreenSizeY, SDL_WINDOW_SHOWN); screen = SDL_GetWindowSurface(Window); ``` Which as you can see just destroys the window and creates a new one. Sloppy but it works. What I want is to just resize the window, is it possible?

Original source