Resize problem, WIN8 x64, VS2012Pro, SDL-2.0 tip, WIN32-Build

Dear SDL-developers,

after porting my application successfully from SDL-1.2.15 under MACOSX and
UBUNTU 12.04 today I ported my app to WIN8 (x64). Now I detect a problem
resizing my window manually. After sizing my main window (the only window
in my application) through grabbing the window border with the mouse the
window collapses instantly to a size of 0 x 124.

I tried to reproduce the problem - and here a the minimal steps I found.

I’m running WIN8 x64, VS2012Pro, SDL-2.0 tip, WIN32-Build.

Minimal steps to reproduce my problem:

  • open solution SDL_VS2012
  • make testdraw2 the start project
  • pass command line option --resize to the debuggee testdraw2
  • starting the application testdraw2
  • try to resize the window
  • the application window resizes to a minimal size 0 x 124.
  • the application crashes to divide by zero …

Can some one else reproduce this error? Should I enter a bug under
bugzilla.libsdl.org?

Thanks in advance,

Marco

Yeah, if a bug is apparent (especially if it shows up in one of the demo
programs), then add it to the bug tracker so it’s sure to get looked at
soon.

Jonny DOn Sun, Jan 6, 2013 at 8:45 AM, Marco Schmidt <Marco.Schmidt at taugamma.de>wrote:

Dear SDL-developers,

after porting my application successfully from SDL-1.2.15 under MACOSX and
UBUNTU 12.04 today I ported my app to WIN8 (x64). Now I detect a problem
resizing my window manually. After sizing my main window (the only window
in my application) through grabbing the window border with the mouse the
window collapses instantly to a size of 0 x 124.

I tried to reproduce the problem - and here a the minimal steps I found.

I’m running WIN8 x64, VS2012Pro, SDL-2.0 tip, WIN32-Build.

Minimal steps to reproduce my problem:

  • open solution SDL_VS2012
  • make testdraw2 the start project
  • pass command line option --resize to the debuggee testdraw2
  • starting the application testdraw2
  • try to resize the window
  • the application window resizes to a minimal size 0 x 124.
  • the application crashes to divide by zero …

Can some one else reproduce this error? Should I enter a bug under
bugzilla.libsdl.org?

Thanks in advance,

Marco


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Bug or feature?

If the application developer needs to set the minimum and maximum size in an SDL-based application we must explicitly state this fact in the documentation. In this case the demo/test programs need a patch to follow the protocol to set min/max sizes. I filed a bug under http://bugzilla.libsdl.org/show_bug.cgi?id=1682 too. I think a sensible default value is a better solution without breaking all current applications.

Marco Schmidt> This is not a bug, but a new future that was recently introduced.

Use these two lines to set minimum and maximum allowed window sizes:

Code:
SDL_SetWindowMinimumSize(window, 320, 200);
SDL_SetWindowMaximumSize(window, 100000, 100000);

Bug or feature?

If the application developer needs to set the minimum and maximum size in
an SDL-based application we must explicitly state this fact in the
documentation. In this case the demo/test programs need a patch to follow
the protocol to set min/max sizes. I filed a bug under
http://bugzilla.libsdl.org/show_bug.cgi?id=1682 too. I think a sensible
default value would be a better solution without breaking all current
applications.

Marco Schmidt> This is not a bug, but a new future that was recently introduced.

Use these two lines to set minimum and maximum allowed window sizes:

Code:

SDL_SetWindowMinimumSize(window, 320, 200);

SDL_SetWindowMaximumSize(window, 100000, 100000);

Bug or feature?

If the application developer needs to set the minimum and maximum size in
an SDL-based application we must explicitly state this fact in the
documentation. In this case the demo/test programs need a patch to follow
the protocol to set min/max sizes. I filed a bug under
http://bugzilla.libsdl.org/show_bug.cgi?id=1682 too. I think a sensible
default value is a better solution without breaking all current
applications.

Marco Schmidt> This is not a bug, but a new future that was recently introduced.

Use these two lines to set minimum and maximum allowed window sizes:

Code:
SDL_SetWindowMinimumSize(window, 320, 200);
SDL_SetWindowMaximumSize(window, 100000, 100000);