[Gridflow-cvs] [svn] commit: r5564 - /trunk/src/sdl.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Thu Apr 29 10:17:41 EDT 2010


Author: matju
Date: Thu Apr 29 10:17:38 2010
New Revision: 5564

Log:
fix by Patrice Colet for bug I coded in summer 2008 or so

Modified:
    trunk/src/sdl.cxx

Modified: trunk/src/sdl.cxx
==============================================================================
--- trunk/src/sdl.cxx (original)
+++ trunk/src/sdl.cxx Thu Apr 29 10:17:38 2010
@@ -119,12 +119,8 @@
 			SETSYMBOL(at+3,keyboard[k] ? keyboard[k] : symprintf("unknown_%d",k));
 			pd_anything(gensym("#sdl")->s_thing,sel,4,at);
 		    } break;
-		    case SDL_MOUSEBUTTONDOWN: SDL_MOUSEBUTTONUP: {
-			if (SDL_MOUSEBUTTONDOWN) mousem |=  (128<<event.button.button);
-			else                     mousem &= ~(128<<event.button.button);
-			//post("mousem=%d",mousem);
-			report_pointer();
-		    } break;
+		    case SDL_MOUSEBUTTONDOWN: {mousem |=  (128<<event.button.button); report_pointer();} break;
+		    case SDL_MOUSEBUTTONUP:   {mousem &= ~(128<<event.button.button); report_pointer();} break;
 		    case SDL_MOUSEMOTION: {
 			mousey = event.motion.y;
 			mousex = event.motion.x;



More information about the Gridflow-cvs mailing list