]> git.saurik.com Git - wxWidgets.git/commitdiff
Compilation fixes to joystick sample after r70279.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Jan 2012 16:35:02 +0000 (16:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Jan 2012 16:35:02 +0000 (16:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/joytest/joytest.cpp

index 0e4c851ca1ed8ce33596ec9945ba2b80d60c6a32..18e7812fb86ea55c60e78b970f438fc3746d61c9 100644 (file)
@@ -152,10 +152,10 @@ void MyCanvas::OnJoystickEvent(wxJoystickEvent& event)
             dc.SetPen(*wxBLACK_PEN);
             dc.DrawLine(xpos, ypos, pt.x, pt.y);
         }
-    }
 
-    xpos = pt.x;
-    ypos = pt.y;
+        xpos = pt.x;
+        ypos = pt.y;
+    }
 
 #if wxUSE_STATUSBAR
     wxString buf;