Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 84241 Details for
Bug 129294
[patch] add fullscreen toggle support to media-libs/libsdl-1.2.9
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
libsdl-1.2.9-fullscreen-toggle.patch
libsdl-1.2.9-fullscreen-toggle.patch (text/plain), 2.48 KB, created by
Ryan Hill (RETIRED)
on 2006-04-08 18:10:03 UTC
(
hide
)
Description:
libsdl-1.2.9-fullscreen-toggle.patch
Filename:
MIME Type:
Creator:
Ryan Hill (RETIRED)
Created:
2006-04-08 18:10:03 UTC
Size:
2.48 KB
patch
obsolete
>diff -cr SDL-1.2.9/src/events/SDL_keyboard.c SDL-1.2.9-dwh/src/events/SDL_keyboard.c >*** SDL-1.2.9/src/events/SDL_keyboard.c 2005-08-21 02:18:54.000000000 -0400 >--- SDL-1.2.9-dwh/src/events/SDL_keyboard.c 2006-01-06 20:12:53.000000000 -0500 >*************** >*** 37,43 **** > #include "SDL_timer.h" > #include "SDL_events_c.h" > #include "SDL_sysevents.h" >! > > /* Global keystate information */ > static Uint8 SDL_KeyState[SDLK_LAST]; >--- 37,43 ---- > #include "SDL_timer.h" > #include "SDL_events_c.h" > #include "SDL_sysevents.h" >! #include "SDL_sysvideo.h" > > /* Global keystate information */ > static Uint8 SDL_KeyState[SDLK_LAST]; >*************** >*** 394,399 **** >--- 394,429 ---- > printf("The '%s' key has been %s\n", SDL_GetKeyName(keysym->sym), > state == SDL_PRESSED ? "pressed" : "released"); > #endif >+ >+ /* Toggle fullscreen on alt-enter >+ The alt-enter will never be send to the application */ >+ if( keysym->sym == SDLK_RETURN && state == SDL_PRESSED >+ && (SDL_ModState & KMOD_RALT)) { >+ SDL_WM_ToggleFullScreen(SDL_PublicSurface); >+ return(0); >+ } >+ >+ /* Toggle fullscreen on alt-enter >+ The alt-enter will never be send to the application */ >+ if( keysym->sym == SDLK_RETURN && state == SDL_PRESSED >+ && (SDL_ModState & KMOD_LALT)) { >+ SDL_WM_ToggleFullScreen(SDL_PublicSurface); >+ SDL_WM_IconifyWindow(); >+ return(0); >+ } >+ >+ if( keysym->sym == SDLK_g && state == SDL_PRESSED >+ && (SDL_ModState & KMOD_LCTRL)) { >+ SDL_WM_GrabInput(SDL_GRAB_OFF); >+ return(0); >+ } >+ >+ if( keysym->sym == SDLK_g && state == SDL_PRESSED >+ && (SDL_ModState & KMOD_RCTRL)) { >+ SDL_WM_GrabInput(SDL_GRAB_ON); >+ return(0); >+ } >+ > /* Set up the keysym */ > modstate = (Uint16)SDL_ModState; > >diff -cr SDL-1.2.9/src/video/SDL_video.c SDL-1.2.9-dwh/src/video/SDL_video.c >*** SDL-1.2.9/src/video/SDL_video.c 2005-06-12 12:12:55.000000000 -0400 >--- SDL-1.2.9-dwh/src/video/SDL_video.c 2006-01-06 20:13:25.000000000 -0500 >*************** >*** 1784,1790 **** > * This function returns the final grab mode after calling the > * driver dependent function. > */ >! static SDL_GrabMode SDL_WM_GrabInputRaw(SDL_GrabMode mode) > { > SDL_VideoDevice *video = current_video; > SDL_VideoDevice *this = current_video; >--- 1784,1790 ---- > * This function returns the final grab mode after calling the > * driver dependent function. > */ >! SDL_GrabMode SDL_WM_GrabInputRaw(SDL_GrabMode mode) > { > SDL_VideoDevice *video = current_video; > SDL_VideoDevice *this = current_video;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 129294
: 84241