Re-Create surface on window size change?

Hello,

I just would like to know if it’s required to create a new surface with
SDL_SetVideoMode()
when the size of the window changes (by using the mouse on the window
border) ??

be resized to the new dimensions using SDL_SetVideoMode.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060601/4c0404c6/attachment.pgpOn Thu, Jun 01, 2006 at 01:54:26AM +0200, Gunnar Pietz wrote:

Hello,

I just would like to know if it’s required to create a new surface with
SDL_SetVideoMode()
when the size of the window changes (by using the mouse on the window
border) ??

From the docwiki: When an SDL_VIDEORESIZE event is recieved the window should

I just would like to know if it’s required to create a new surface with
SDL_SetVideoMode()
when the size of the window changes (by using the mouse on the window
border) ??

If you are using OpenGL, you will have to reload your texture pixels
(free and upload again), specially on windows as the texture become
corrupt. Fortunately, linux is friendlier to the developer and takes
care of it.

HTH,
Simon