From 6288533ed2315c2f5b7c447c56e8aba9e6dda8b2 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Mon, 31 Jul 2006 12:06:30 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=10797 --- clientgui/BOINCTaskBar.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clientgui/BOINCTaskBar.cpp b/clientgui/BOINCTaskBar.cpp index 5dbd9e83ba..a2eee1a973 100644 --- a/clientgui/BOINCTaskBar.cpp +++ b/clientgui/BOINCTaskBar.cpp @@ -532,6 +532,12 @@ bool CTaskBarIcon::SetIcon(const wxIcon& icon, const wxString& tooltip) { // Convert the wxIcon into a wxBitmap so we can perform some // wxBitmap operations with it wxBitmap bmp( macIcon ) ; + + // wxMac's XMP image format always uses 32-bit pixels but allows only + // 1-bit masks, so we use a separate XMP file for the 8-bit mask to + // allow us to do proper anti-aliasing of the badges. This code assumes + // that all badges are the same size circle and at the same position so + // that they can share a single mask. wxBitmap mask_bmp( macbadgemask ) ; h = bmp.GetHeight(); w = bmp.GetWidth();