Display resizing problem

I’m using SDL 1.2.10 and mingw to develop an application which uses a
standard Windows pull-down menu. It runs in windowed mode, and the
window is resized often with SDL_SetVideoMode().

When a menu is loaded, the next call to SetVideoMode() moves the
window downward by a number of pixels corresponding to the menu
height. Multiple resizings result in the window being scrolled
downwards, and eventually off screen. Without a menu the window
remains at the proper location.

Are there any workarounds? At the moment I’d guess the window setup
code was written to get the client area of the window, not including
the menu. I’m not proposing that SDL needs to be changed to support
resizing with menus present, but any suggestions for a fix would be
appreciated.

Regards,

Charles

I’m using SDL 1.2.10 and mingw to develop an application which uses a
standard Windows pull-down menu. It runs in windowed mode, and the
window is resized often with SDL_SetVideoMode().

When a menu is loaded, the next call to SetVideoMode() moves the
window downward by a number of pixels corresponding to the menu
height. Multiple resizings result in the window being scrolled
downwards, and eventually off screen. Without a menu the window
remains at the proper location.

Are there any workarounds? At the moment I’d guess the window setup
code was written to get the client area of the window, not including
the menu. I’m not proposing that SDL needs to be changed to support
resizing with menus present, but any suggestions for a fix would be
appreciated.

I thought this worked in 1.2.10 - can you enter a bug report and attach
a test case? http://bugzilla.libsdl.org/

Thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment