]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docview/view.cpp
Add a few missing appearance screenshots for the manual.
[wxWidgets.git] / samples / docview / view.cpp
index 555368aa7bb9d9ed4711415a0506d55e383fe2fb..4a865407a409cab8a67d7055d7349a1995c88ea7 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Julian Smart
 // Modified by: Vadim Zeitlin: merge with the MDI version and general cleanup
 // Created:     04/01/98
-// RCS-ID:      $Id$
 // Copyright:   (c) 1998 Julian Smart
 //              (c) 2008 Vadim Zeitlin
 // Licence:     wxWindows licence
@@ -336,7 +335,7 @@ void ImageView::OnDraw(wxDC* dc)
     wxImage image = GetDocument()->GetImage();
     if ( image.IsOk() )
     {
-        dc->DrawBitmap(wxBitmap(image), 0, 0);
+        dc->DrawBitmap(wxBitmap(image), 0, 0, true /* use mask */);
     }
 }