]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docview/view.cpp
Check axis number in the received joystick messages.
[wxWidgets.git] / samples / docview / view.cpp
index 555368aa7bb9d9ed4711415a0506d55e383fe2fb..5b3743fd90075551d8698f1c3689236071d8d5b2 100644 (file)
@@ -336,7 +336,7 @@ void ImageView::OnDraw(wxDC* dc)
     wxImage image = GetDocument()->GetImage();
     if ( image.IsOk() )
     {
     wxImage image = GetDocument()->GetImage();
     if ( image.IsOk() )
     {
-        dc->DrawBitmap(wxBitmap(image), 0, 0);
+        dc->DrawBitmap(wxBitmap(image), 0, 0, true /* use mask */);
     }
 }
 
     }
 }