From 9542f0a109720cf68646356248828001e46ed415 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 30 Sep 2003 12:26:42 +0000 Subject: [PATCH] treat 0xc0c0c0 as transparent colour by default git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/gdiimage.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/msw/gdiimage.cpp b/src/msw/gdiimage.cpp index d5b356119e..126da04b01 100644 --- a/src/msw/gdiimage.cpp +++ b/src/msw/gdiimage.cpp @@ -356,6 +356,9 @@ bool wxBMPResourceHandler::LoadFile(wxBitmap *bitmap, bitmap->SetHeight(bm.bmHeight); bitmap->SetDepth(bm.bmBitsPixel); + // use 0xc0c0c0 as transparent colour by default + bitmap->SetMask(new wxMask(*bitmap, *wxLIGHT_GREY)); + return true; } -- 2.45.2