From: Vadim Zeitlin Date: Tue, 26 Apr 2011 22:57:39 +0000 (+0000) Subject: Remove apparently erroneous -1 from DrawBitmap() in wxMSW wxGC code. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/42604e44bec70f5a26cabb26653f7ca1490fb04e?hp=85a9228394a1172e778cdd48db590b533c0132ba Remove apparently erroneous -1 from DrawBitmap() in wxMSW wxGC code. We didn't draw the last line and row of the image for some reason, simply remove the -1 which prevented us from doing this. Closes #12476. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/graphics.cpp b/src/msw/graphics.cpp index 4e852ada98..a5ba892d0c 100644 --- a/src/msw/graphics.cpp +++ b/src/msw/graphics.cpp @@ -1556,7 +1556,7 @@ void wxGDIPlusContext::DrawBitmap( const wxGraphicsBitmap &bmp, wxDouble x, wxDo { Rect drawRect((REAL) x, (REAL)y, (REAL)w, (REAL)h); m_context->SetPixelOffsetMode( PixelOffsetModeNone ); - m_context->DrawImage(image, drawRect, 0 , 0 , image->GetWidth()-1, image->GetHeight()-1, UnitPixel ) ; + m_context->DrawImage(image, drawRect, 0 , 0 , image->GetWidth(), image->GetHeight(), UnitPixel ) ; m_context->SetPixelOffsetMode( PixelOffsetModeHalf ); } else