Bug 2844 - Cannot resize game window in windowed mode.
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Video
Version: 1.33 SVN
Hardware: PC Linux
: P2 minor
Assignee: Ryan C. Gordon
QA Contact: ioquake3 bugzilla mailing list
URL: http://www.unix-ag.uni-kl.de/~auerswa...
Depends on:
Blocks:
 
Reported: 2006-08-23 04:13 EDT by Erik Auerswald
Modified: 2009-09-14 18:44:43 EDT
0 users

See Also:


Attachments
Resizable window patch (1.87 KB, patch)
2009-09-14 11:28 EDT, Ryan C. Gordon

Description Erik Auerswald 2006-08-23 04:13:39 EDT
When using windowed mode the window can't be resized [with the mouse/normal window manager functions]. The patch given via the URL above adds window resizing to the SDL version of ioquake3.

To ungrab the mouse to actually resize the window you can open the in-game console or use the CVar in_nograb.
Comment 1 Ryan C. Gordon 2007-05-21 11:22:22 EDT
Setting a QA contact on all ioquake3 bugs, even resolved ones. Sorry if you get a flood of email from this, it should only happen once. Apologies for the incovenience.

--ryan.

Comment 2 Ryan C. Gordon 2009-09-14 11:28:13 EDT
Created attachment 2124 [details]
Resizable window patch


Moved patch into Bugzilla attachment.

--ryan.
Comment 3 Ryan C. Gordon 2009-09-14 18:44:43 EDT
I updated this patch and committed it as svn revision #1594.

I also added a timeout; on some platforms you get constant resize events as soon as you drag the window, so you lose the window as it recreates under you. If a resize event hasn't happened for 1 second, then we recreate the GL context.

Someday, we should probably investigate updating the pieces of GL state that would be out of sync instead of calling vid_restart, so this works much more smoothly.

--ryan.