d2d1: Introduce a function to convert D2D1.0 interpolation modes to D2D1.1.
Signed-off-by: Chip Davis <cdavis@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
69487dad1c
commit
e771fc8dde
|
@ -962,7 +962,7 @@ static void STDMETHODCALLTYPE d2d_bitmap_brush_SetInterpolationMode(ID2D1BitmapB
|
|||
return;
|
||||
}
|
||||
|
||||
brush->u.bitmap.interpolation_mode = mode;
|
||||
brush->u.bitmap.interpolation_mode = d2d1_1_interp_mode_from_d2d1(mode);
|
||||
if (brush->u.bitmap.sampler_state)
|
||||
{
|
||||
ID3D10SamplerState_Release(brush->u.bitmap.sampler_state);
|
||||
|
|
|
@ -634,6 +634,11 @@ static inline void d2d_rect_expand(D2D1_RECT_F *dst, const D2D1_POINT_2F *point)
|
|||
dst->bottom = point->y;
|
||||
}
|
||||
|
||||
static inline D2D1_INTERPOLATION_MODE d2d1_1_interp_mode_from_d2d1(D2D1_BITMAP_INTERPOLATION_MODE mode)
|
||||
{
|
||||
return (D2D1_INTERPOLATION_MODE)mode;
|
||||
}
|
||||
|
||||
static inline const char *debug_d2d_point_2f(const D2D1_POINT_2F *point)
|
||||
{
|
||||
if (!point)
|
||||
|
|
|
@ -1143,7 +1143,8 @@ static void STDMETHODCALLTYPE d2d_device_context_DrawBitmap(ID2D1DeviceContext *
|
|||
return;
|
||||
}
|
||||
|
||||
d2d_device_context_draw_bitmap(context, bitmap, dst_rect, opacity, interpolation_mode, src_rect, NULL);
|
||||
d2d_device_context_draw_bitmap(context, bitmap, dst_rect, opacity, d2d1_1_interp_mode_from_d2d1(interpolation_mode),
|
||||
src_rect, NULL);
|
||||
}
|
||||
|
||||
static void STDMETHODCALLTYPE d2d_device_context_DrawText(ID2D1DeviceContext *iface,
|
||||
|
|
Loading…
Reference in New Issue