[Gridflow-cvs] [svn] commit: r3756 - /trunk/format/sdl.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Mon Jun 2 15:51:30 EDT 2008


Author: matju
Date: Mon Jun  2 15:51:30 2008
New Revision: 3756

Log:
fix full screen already

Modified:
    trunk/format/sdl.c

Modified: trunk/format/sdl.c
==============================================================================
--- trunk/format/sdl.c (original)
+++ trunk/format/sdl.c Mon Jun  2 15:51:30 2008
@@ -53,7 +53,7 @@
 		    case SDL_KEYDOWN: case SDL_KEYUP: {
 			int key = event.key.keysym.sym;
 			int mod = event.key.keysym.mod;
-			if (key==SDLK_F11) {full_screen = !full_screen; SDL_WM_ToggleFullScreen(screen); break;}
+			if (key==SDLK_F11 && event.type==SDL_KEYDOWN) {full_screen = !full_screen; SDL_WM_ToggleFullScreen(screen); break;}
 			t_symbol *sel = gensym(const_cast<char *>(event.type==SDL_KEYDOWN ? "keypress" : "keyrelease"));
 			t_atom at[4];
 			mousem &= ~0xFF;



More information about the Gridflow-cvs mailing list