corrects a test in the Blit code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29942 
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
 
         // Scale bitmap if required
         wxBitmap use_bitmap;
 
         // Scale bitmap if required
         wxBitmap use_bitmap;
-        if ((bm_width != bm_ww) || (bm_height != bm_hh))
+        if ((memDC->m_selected.GetWidth()!= bm_ww) || ( memDC->m_selected.GetHeight()!= bm_hh))
         {
             // This indicates that the blitting code below will get
             // a clipped bitmap and therefore needs to move the origin
         {
             // This indicates that the blitting code below will get
             // a clipped bitmap and therefore needs to move the origin
     }
     else // use_bitmap_method
     {
     }
     else // use_bitmap_method
     {
-        if ((width != ww) || (height != hh))
+        if ((memDC->m_selected.GetWidth() != ww) || (memDC->m_selected.GetHeight() != hh))
         {
             // get clip coords
             wxRegion tmp( xx,yy,ww,hh );
         {
             // get clip coords
             wxRegion tmp( xx,yy,ww,hh );
 
 
         // Scale bitmap if required
         wxBitmap use_bitmap;
 
         // Scale bitmap if required
         wxBitmap use_bitmap;
-        if ((bm_width != bm_ww) || (bm_height != bm_hh))
+        if ((memDC->m_selected.GetWidth()!= bm_ww) || ( memDC->m_selected.GetHeight()!= bm_hh))
         {
             // This indicates that the blitting code below will get
             // a clipped bitmap and therefore needs to move the origin
         {
             // This indicates that the blitting code below will get
             // a clipped bitmap and therefore needs to move the origin
     }
     else // use_bitmap_method
     {
     }
     else // use_bitmap_method
     {
-        if ((width != ww) || (height != hh))
+        if ((memDC->m_selected.GetWidth() != ww) || (memDC->m_selected.GetHeight() != hh))
         {
             // get clip coords
             wxRegion tmp( xx,yy,ww,hh );
         {
             // get clip coords
             wxRegion tmp( xx,yy,ww,hh );