X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3b2f80c205c590fa4f28fcad3f98e1bb647cac72..89b3361ec25cf1e6d255b14c7633d8375646e4fb:/samples/joytest/joytest.cpp diff --git a/samples/joytest/joytest.cpp b/samples/joytest/joytest.cpp index 0e4c851ca1..f8f478d5f9 100644 --- a/samples/joytest/joytest.cpp +++ b/samples/joytest/joytest.cpp @@ -31,7 +31,7 @@ // the application icon (under Windows and OS/2 it is in resources and even // though we could still include the XPM here it would be unused) -#if !defined(__WXMSW__) && !defined(__WXPM__) +#ifndef wxHAS_IMAGES_IN_RESOURCES #include "../sample.xpm" #endif @@ -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;