use correct scale when drawing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
cf0a184480
commit
ec2df34e27
@ -227,8 +227,8 @@ void wxGCDCImpl::DoDrawBitmap( const wxBitmap &bmp, wxCoord x, wxCoord y,
|
||||
wxCHECK_RET( IsOk(), wxT("wxGCDC(cg)::DoDrawBitmap - invalid DC") );
|
||||
wxCHECK_RET( bmp.IsOk(), wxT("wxGCDC(cg)::DoDrawBitmap - invalid bitmap") );
|
||||
|
||||
int w = bmp.GetWidth();
|
||||
int h = bmp.GetHeight();
|
||||
int w = bmp.GetScaledWidth();
|
||||
int h = bmp.GetScaledHeight();
|
||||
if ( bmp.GetDepth() == 1 )
|
||||
{
|
||||
m_graphicContext->SetPen(*wxTRANSPARENT_PEN);
|
||||
|
Loading…
Reference in New Issue
Block a user