Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resize collapses window instantly to a size of 0 x 124. #730

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

Resize collapses window instantly to a size of 0 x 124. #730

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: HG 2.0
Reported for operating system, platform: Windows 7, x86

Comments on the original bug report:

On 2013-01-06 06:49:45 +0000, Marco Schmidt wrote:

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. In my application I can not resize the window to a normal size again.

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

I'm running WIN8 x64, VS2012Pro, HG 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 .... (this is only the aftermath but a unhandled error condition)

On 2013-01-07 05:53:54 +0000, Marco Schmidt wrote:

I reproduced the bug on WIN7 x64, VS2012Pro, HG SDL-2.0 tip, WIN32-Build too.

On 2013-01-08 04:07:41 +0000, Marco Schmidt wrote:

Debugging under windows 7 reveals that possible the changes of revision 6788 (036f53f2f5aa31a3c23357c42aa36831dbcd9a53) lead to this behavior.

On 2013-01-13 22:25:59 +0000, Marco Schmidt wrote:

Possibly setting the maximum width to Zero as default value leads to this behavior.

On 2013-01-15 12:39:23 +0000, Vincent Ordy wrote:

I'm having the same problem on Win7 64-bit, VS2008Pro, SDL-2.0 from January 1st, Win32-build.

Obviously the problem is in src/video/windows/SDL_windowsevents.c in WIN_WindowProc. When the maximum size is not initialized, info->ptMaxTrackSize is filled with a small size and Windows resizes the window.

On 2013-01-30 13:01:40 +0000, Philipp Wiesemann wrote:

Maybe similar to bug 1704.

On 2013-02-01 22:48:57 +0000, Sam Lantinga wrote:

*** Bug 1704 has been marked as a duplicate of this bug. ***

On 2013-02-08 01:05:04 +0000, Sam Lantinga wrote:

Fixed, thanks!
http://hg.libsdl.org/SDL/rev/a69e10925a58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant