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
This commit is contained in:
@@ -1556,7 +1556,7 @@ void wxGDIPlusContext::DrawBitmap( const wxGraphicsBitmap &bmp, wxDouble x, wxDo
|
|||||||
{
|
{
|
||||||
Rect drawRect((REAL) x, (REAL)y, (REAL)w, (REAL)h);
|
Rect drawRect((REAL) x, (REAL)y, (REAL)w, (REAL)h);
|
||||||
m_context->SetPixelOffsetMode( PixelOffsetModeNone );
|
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 );
|
m_context->SetPixelOffsetMode( PixelOffsetModeHalf );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user