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:
@@ -418,8 +418,12 @@ void wxDC::DoDrawIcon( const wxIcon &icon, wxCoord x, wxCoord y )
|
|||||||
|
|
||||||
wxCoord xx = XLOG2DEVMAC(x);
|
wxCoord xx = XLOG2DEVMAC(x);
|
||||||
wxCoord yy = YLOG2DEVMAC(y);
|
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() ) ) ;
|
PlotIconRef( &r , kAlignNone , kTransformNone , kPlotIconRefNormalFlags , MAC_WXHICON( icon.GetHICON() ) ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user