From: Stefan Csomor Date: Tue, 29 Mar 2005 11:45:23 +0000 (+0000) Subject: using correct icon sizes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/37a87c6709bb9b850a0e686c3a9f46621eb006ac using correct icon sizes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/dc.cpp b/src/mac/carbon/dc.cpp index e108c61210..a46cf73240 100644 --- a/src/mac/carbon/dc.cpp +++ b/src/mac/carbon/dc.cpp @@ -418,8 +418,12 @@ void wxDC::DoDrawIcon( const wxIcon &icon, wxCoord x, wxCoord y ) wxCoord xx = XLOG2DEVMAC(x); wxCoord yy = YLOG2DEVMAC(y); + wxCoord w = icon.GetWidth(); + wxCoord h = icon.GetHeight(); + wxCoord ww = XLOG2DEVREL(w); + wxCoord hh = YLOG2DEVREL(h); - Rect r = { yy , xx, yy + 32 , xx + 32 } ; + Rect r = { yy , xx, yy + hh , xx + ww } ; PlotIconRef( &r , kAlignNone , kTransformNone , kPlotIconRefNormalFlags , MAC_WXHICON( icon.GetHICON() ) ) ; }