Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 129294

Summary: [patch] add fullscreen toggle support to media-libs/libsdl-1.2.9
Product: Gentoo Linux Reporter: Ryan Hill (RETIRED) <rhill>
Component: [OLD] LibraryAssignee: Gentoo Games <games>
Status: RESOLVED INVALID    
Severity: enhancement CC: wmbooth
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://home.woh.rr.com/nwmovies/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: libsdl-1.2.9-fullscreen-toggle.patch

Description Ryan Hill (RETIRED) gentoo-dev 2006-04-08 18:08:12 UTC
This patch adds the ability to toggle apps and games using libSDL's fullscreen mode between full and windowed using a few different key sequences.

    * Right-Alt & Enter - Toggle between FullScreen/Windowed.
    * Left-Alt & Enter - Iconify Window.
    * Left-Control & G - Disable the mouse grab that keeps the cursor inside the window.
    * Right-Control & G - Re-enable the mouse grab to keep the cursor inside the window.

Testing w/ libsdl-1.2.9 and Neverwinter Nights, Frozen Bubble, and Tomatoes worked as advertised.  Patches against older versions are available are also available at the URL above.
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2006-04-08 18:10:03 UTC
Created attachment 84241 [details, diff]
libsdl-1.2.9-fullscreen-toggle.patch
Comment 2 SpanKY gentoo-dev 2006-04-09 10:03:10 UTC
i take it you didnt write this patch huh

this needs to go through the libsdl mailing list ...
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2006-04-09 16:44:45 UTC
not gonna happen.
Comment 4 SpanKY gentoo-dev 2006-04-09 17:02:56 UTC
hmm ?  this patch has been posted to the libsdl list already ?
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2006-04-09 17:44:10 UTC
it may have, but i see they're ripping out the ToggleFullScreen functions in favor of something more portable in 1.3 anyways.

plus, after reading through the sources i realized how totally ugly a hack this is and i'm kind of embarrassed i proposed it in the first place.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-02-09 08:00:45 UTC
*** Bug 165951 has been marked as a duplicate of this bug. ***