]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/joytest/joytest.cpp
don't crash when invalid colour is set as fg/bg colour
[wxWidgets.git] / samples / joytest / joytest.cpp
index 7298b2f286e8e6db0e249f4e8db72034da9f7cd4..5fe4889958db32518ad4894c89d9744b7e2af64b 100644 (file)
@@ -130,9 +130,9 @@ void MyCanvas::OnJoystickEvent(wxJoystickEvent& event)
 
   char buf[100];
   if (event.ButtonDown())
-    sprintf(buf, "Joystick (%ld, %ld) Fire!", pt.x, pt.y);
+    sprintf(buf, "Joystick (%d, %d) Fire!", pt.x, pt.y);
   else
-    sprintf(buf, "Joystick (%ld, %ld)", pt.x, pt.y);
+    sprintf(buf, "Joystick (%d, %d)", pt.x, pt.y);
   frame->SetStatusText(buf);
 
 #if wxUSE_WAVE