]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dcgraph.cpp
Use int instead of wxWindowID in wxNewId() and friends.
[wxWidgets.git] / 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);