From: Robin Dunn Date: Wed, 2 Jun 2004 19:39:11 +0000 (+0000) Subject: Don't force a smaller icon size X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fe3d568d3d19d7f144e09d978e42fbad2fed875f Don't force a smaller icon size git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/taskbarx11.cpp b/src/unix/taskbarx11.cpp index 99ed4fb030..5ec54ac876 100644 --- a/src/unix/taskbarx11.cpp +++ b/src/unix/taskbarx11.cpp @@ -139,7 +139,7 @@ void wxTaskBarIconArea::SetTrayIcon(const wxBitmap& bmp) // determine suitable bitmap size: wxSize winsize(GetSize()); wxSize bmpsize(m_bmp.GetWidth(), m_bmp.GetHeight()); - wxSize iconsize(wxMin(winsize.x-2, bmpsize.x), wxMin(winsize.y-2, bmpsize.y)); + wxSize iconsize(wxMin(winsize.x, bmpsize.x), wxMin(winsize.y, bmpsize.y)); // rescale the bitmap to fit into the tray icon window: if (bmpsize != iconsize)