]> git.saurik.com Git - wxWidgets.git/commitdiff
use correct scale when drawing
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 27 Jun 2013 05:54:51 +0000 (05:54 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 27 Jun 2013 05:54:51 +0000 (05:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcgraph.cpp

index d0ae6af59fb3a2b7209d1b7a4bd027cdbbe1f3a1..f787932c215a7a868da52d36cf37b04d5b91d76f 100644 (file)
@@ -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);