From 11c278c43c35e3bb40b2779673238752db31087a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 19 Jan 2012 22:17:17 +0000 Subject: [PATCH] Respect image mask in the docview sample. Draw images with transparency, if any. See #13881. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/docview/view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/docview/view.cpp b/samples/docview/view.cpp index 555368aa7b..5b3743fd90 100644 --- a/samples/docview/view.cpp +++ b/samples/docview/view.cpp @@ -336,7 +336,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 */); } } -- 2.45.2