using correct icon sizes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2005-03-29 11:45:23 +00:00
parent 38e605eb82
commit 37a87c6709

View File

@@ -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() ) ) ;
}