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
This commit is contained in:
parent
8734eb3732
commit
1643a7dd51
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user