Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:42.1:Update
mirrormagic
mirrormagic-2.0.2-src_libgame_sdl.c.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mirrormagic-2.0.2-src_libgame_sdl.c.patch of Package mirrormagic
--- src/libgame/sdl.c.orig 2002-03-19 04:10:37.000000000 +0100 +++ src/libgame/sdl.c 2014-10-22 15:51:06.709520506 +0200 @@ -14,7 +14,7 @@ #include "system.h" #include "sound.h" #include "misc.h" - +#include "../main.h" #if defined(TARGET_SDL) @@ -930,6 +930,20 @@ ((ButtonEvent *)event)->y = 0; } #endif + if (event->type == EVENT_KEYPRESS) + { + /* make alt + enter toggle fullscreen */ + if ( (((KeyEvent *)event)->keysym.sym == KSYM_Return) && + (((KeyEvent *)event)->keysym.mod == KMOD_LALT) ) + { + if(SDL_WM_ToggleFullScreen(SDL_GetVideoSurface())) + { + video.fullscreen_enabled = !video.fullscreen_enabled; + setup.fullscreen = video.fullscreen_enabled; + } + event->type = EVENT_FULLSCREENTOGGLE; + } + } } #endif /* TARGET_SDL */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor