Window resizing issues

I must be missing something simple. I set the SDL video mode as follows:

SDL_SetVideoMode(1280, 720, SDL_ASYNCBLIT | SDL_HWSURFACE | SDL_OPENGL |
SDL_RESIZABLE);

Now I click the “maximize” button and it sizes fine and I get the event
SDL_VIDEORESIZE with 1468x1174. Now I click the “restore” button to get it back
to 1280x720 and I don’t get a SDL_VIDEORESIZE call again to let me know the
window was set back to the original size.

But, if I grab the corner of the window and move it a little and repeat the
steps above, I do get the SDL_VIDEORESIZE call for both the “maximize” and the
"restore" button press.

What am I missing?

I would assume this issue is something that bothers many people who want a
resizable window. It makes it impossible to adjust opengl rendering each time
the window size changes. I guess this is the point at which I fix it myself?

I don’t mean to discourage you from fixing it yourself, but what
operating system are you using?On Tue, Sep 23, 2008 at 11:56 PM, Boguenator wrote:

I would assume this issue is something that bothers many people who want a
resizable window. It makes it impossible to adjust opengl rendering each time
the window size changes. I guess this is the point at which I fix it myself?

I don’t mean to discourage you from fixing it yourself, but what
operating system are you using?

I am using WinXP service pack 2.