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 1818

Summary: Infinite resize loop caused by SDL_SetVideoMode generating resize events
Product: SDL Reporter: cib123
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED ENDOFLIFE QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.14   
Hardware: x86   
OS: Linux   
Attachments: Somehow the attached file didn't upload?

Description cib123 2013-04-23 01:10:59 UTC
Example code to reproduce the issue on systems where it happens is in the attachment. As you might see when running this code, the program will perpetually send itself resize events of different sizes, causing the window to flicker back and forth in width.

To make clear that using SetVideoMode from a resize event is actually common: http://lazyfoo.net/SDL_tutorials/lesson26/index.php

My OS:
cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"

I think this issue may have been fixed in more recent SDL and/or Ubuntu, but as this problem is so simple to reproduce, and a lot of people have a version from half a year ago, I think it's important to report this and raise awareness. =)
Comment 1 cib123 2013-04-23 01:12:09 UTC
Created attachment 1123 [details]
Somehow the attached file didn't upload?
Comment 2 Ryan C. Gordon 2015-08-25 09:38:21 UTC
Hello, and sorry if you're getting several copies of this message by email, since we are closing many bugs at once here.

We have decided to mark all SDL 1.2-related bugs as RESOLVED ENDOFLIFE, as we don't intend to work on SDL 1.2 any further, but didn't want to mark a large quantity of bugs as RESOLVED WONTFIX, to clearly show what was left unattended to and make it easily searchable.

Our current focus is on SDL 2.0.

If you are still having problems with an ENDOFLIFE bug, your absolute best option is to move your program to SDL2, as it will likely fix the problem by default, and give you access to modern platforms and tons of super-cool new features.

Failing that, we _will_ accept small patches to fix these issues, and put them in revision control, although we do not intend to do any further official 1.2 releases.

Failing that, please feel free to contact me directly by email (icculus@icculus.org) and we'll try to find some way to help you out of your situation.

Thank you,
--ryan.