X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d2bb4c8653ae01c57ecd9a8ad899da06f865f5da..d4596328440c89a2e8efb9ce472fd6d2212d9db5:/src/common/dcgraph.cpp diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index d0ae6af59f..f787932c21 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -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);