diff --git a/samples/joytest/joytest.cpp b/samples/joytest/joytest.cpp index 0e4c851ca1..18e7812fb8 100644 --- a/samples/joytest/joytest.cpp +++ b/samples/joytest/joytest.cpp @@ -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;