d2d1: Return enum constants directly in d2d_bitmap_brush_GetInterpolationMode() (Clang).

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:
Chip Davis 2020-04-06 17:51:58 -05:00 committed by Alexandre Julliard
parent e35a62c5fa
commit 69487dad1c
1 changed files with 1 additions and 1 deletions

View File

@ -1010,8 +1010,8 @@ static D2D1_BITMAP_INTERPOLATION_MODE STDMETHODCALLTYPE d2d_bitmap_brush_GetInte
switch (brush->u.bitmap.interpolation_mode) switch (brush->u.bitmap.interpolation_mode)
{ {
case D2D1_INTERPOLATION_MODE_NEAREST_NEIGHBOR: case D2D1_INTERPOLATION_MODE_NEAREST_NEIGHBOR:
return D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR;
case D2D1_INTERPOLATION_MODE_LINEAR: case D2D1_INTERPOLATION_MODE_LINEAR:
return brush->u.bitmap.interpolation_mode;
default: default:
return D2D1_BITMAP_INTERPOLATION_MODE_LINEAR; return D2D1_BITMAP_INTERPOLATION_MODE_LINEAR;
} }