From dbe23aadaea44a4078f9975681af37e37f40b427 Mon Sep 17 00:00:00 2001 From: s_nakamoto Date: Mon, 21 Jun 2010 18:41:34 +0000 Subject: [PATCH] fix system tray icon on windows --- ui.cpp | 4 +++- ui.rc | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ui.cpp b/ui.cpp index 54cfa2a2a0..e51c1e2e5d 100644 --- a/ui.cpp +++ b/ui.cpp @@ -2437,7 +2437,9 @@ void CMyTaskBarIcon::Show(bool fShow) { strlcpy(pszPrevTip, strTooltip.c_str(), sizeof(pszPrevTip)); #ifdef __WXMSW__ - SetIcon(wxICON(bitcoin), strTooltip); + // somehow it'll choose the wrong icon and scale it down if + // we use the main icon, so we hand it one with only 16x16 + SetIcon(wxICON(favicon), strTooltip); #else SetIcon(bitcoin80_xpm, strTooltip); #endif diff --git a/ui.rc b/ui.rc index 95258c7d59..0e0122de2b 100644 --- a/ui.rc +++ b/ui.rc @@ -12,3 +12,4 @@ addressbook16 BITMAP "rc/addressbook16.bmp" addressbook16mask BITMAP "rc/addressbook16mask.bmp" addressbook20 BITMAP "rc/addressbook20.bmp" addressbook20mask BITMAP "rc/addressbook20mask.bmp" +favicon ICON "rc/favicon.ico"