From 1643a7dd51d112c7edbde0336edb620ad7829fe4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 10 Sep 2014 16:52:16 +0000 Subject: [PATCH] Use ID2D1Bitmap instead of ID2D1Image. ID2D1Image is not defined in v7.0A platform SDK used by VC10 and doesn't seem to be needed here as we are only working with ID2D1Bitmaps (deriving from ID2D1Image) anyhow. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/graphicsd2d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/graphicsd2d.cpp b/src/msw/graphicsd2d.cpp index f3213492f0..db7e42d282 100644 --- a/src/msw/graphicsd2d.cpp +++ b/src/msw/graphicsd2d.cpp @@ -2189,13 +2189,13 @@ public: // The default implementation works for all render targets, but the D2D 1.0 // render target holders shouldn't need to override it, since none of the // 1.0 render targets offer a better version of this method. - virtual void DrawBitmap(ID2D1Image* image, D2D1_POINT_2F offset, + virtual void DrawBitmap(ID2D1Bitmap* bitmap, D2D1_POINT_2F offset, D2D1_RECT_F imageRectangle, wxInterpolationQuality interpolationQuality, wxCompositionMode WXUNUSED(compositionMode)) { D2D1_RECT_F destinationRectangle = D2D1::RectF(offset.x, offset.y, offset.x + imageRectangle.right, offset.y + imageRectangle.bottom); m_nativeResource->DrawBitmap( - (ID2D1Bitmap*)image, + bitmap, destinationRectangle, 1.0f, wxD2DConvertBitmapInterpolationMode(interpolationQuality),