We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1704

Summary: Attempting to resize windows shrinks them to zero height
Product: SDL Reporter: fox_jmtbbk
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2 CC: marcotaugammaschmidt, philipp.wiesemann
Version: HG 2.0   
Hardware: x86_64   
OS: Windows 7   

Description fox_jmtbbk 2013-01-29 19:45:06 UTC
Steps to reproduce:
 - Use SDL2 2012-01-27 snapshot on Microsoft Windows 7 amd64 with MSVC2012.
 - In src\test\SDL_test_common.c add SDL_WINDOW_RESIZABLE to the window flags.
 - Compile and execute the testgl2 project.
 - Attempt to resize by dragging the window border.

Buggy behaviour:
 - Window immediately snaps to zero height and about 100 pixels wide.

Expected behaviour:
 - Window changes size.

This bug seems to be specific to SDL2. The correct behaviour happens in testgl2 supplied with SDL1.2 2012-01-20 snapshot.
Comment 1 Philipp Wiesemann 2013-01-30 12:58:36 UTC
Maybe similar to bug 1682 and maybe SDL_SetWindowMinimumSize() helps.
Comment 2 Marco Schmidt 2013-01-30 14:11:39 UTC
Duplicate of 1682
Comment 3 Sam Lantinga 2013-02-01 22:48:56 UTC

*** This bug has been marked as a duplicate of bug 1682 ***