[SDL] resizable windows
j_post at pacbell.net
Sun Mar 7 16:18:55 PST 2010
On Sunday 07 March 2010 13:46, Lilly wrote:
> I tried to apply what Jeff told me but I didn't manage to
> make it work. I want to resize dynamically, as opposed to only when the
> mouse bouton is released.
On Linux, using that code, I place the mouse pointer over a corner or edge of
the window, hold down the left mouse button, drag the mouse, and the window
resizes as the mouse moves. It stops resizing when the mouse button is
I never tried it on Windows, mainly because I don't have Windows, but I don't
see why it wouldn't work. Maybe Windows only sends the resize event when the
button is released? Are you updating the screen when you get a resize event?
SDL_UpdateRect(screen, 0, 0, 0, 0);
More information about the SDL