[Scummvm-cvs-logs] SF.net SVN: scummvm:[48432] scummvm/branches/branch-1-1-0/backends/platform /ds/arm9/source/dsmain.cpp

agent-q at users.sourceforge.net agent-q at users.sourceforge.net
Wed Mar 31 00:31:36 CEST 2010


Revision: 48432
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48432&view=rev
Author:   agent-q
Date:     2010-03-30 22:31:35 +0000 (Tue, 30 Mar 2010)

Log Message:
-----------
DS: Initialise some global key tracking variables to attempt to fix an occational bug where the mouse mode starts in hover rather than left button mode.

Modified Paths:
--------------
    scummvm/branches/branch-1-1-0/backends/platform/ds/arm9/source/dsmain.cpp

Modified: scummvm/branches/branch-1-1-0/backends/platform/ds/arm9/source/dsmain.cpp
===================================================================
--- scummvm/branches/branch-1-1-0/backends/platform/ds/arm9/source/dsmain.cpp	2010-03-30 22:26:13 UTC (rev 48431)
+++ scummvm/branches/branch-1-1-0/backends/platform/ds/arm9/source/dsmain.cpp	2010-03-30 22:31:35 UTC (rev 48432)
@@ -349,19 +349,19 @@
 // Stylus
 #define ABS(x) ((x)>0?(x):-(x))
 
-bool penDown;
-bool penHeld;
-bool penReleased;
-bool penDownLastFrame;
-s32 penX, penY;
-s32 penDownX, penDownY;
-int keysDownSaved;
-int keysReleasedSaved;
-int keysChangedSaved;
+bool penDown = FALSE;
+bool penHeld = FALSE;
+bool penReleased = FALSE;
+bool penDownLastFrame = FALSE;
+s32 penX = 0, penY = 0;
+s32 penDownX = 0, penDownY = 0;
+int keysDownSaved = 0;
+int keysReleasedSaved = 0;
+int keysChangedSaved = 0;
 
-bool penDownSaved;
-bool penReleasedSaved;
-int penDownFrames;
+bool penDownSaved = FALSE;
+bool penReleasedSaved = FALSE;
+int penDownFrames = 0;
 int touchXOffset = 0;
 int touchYOffset = 0;
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list