gdiplus: Added interpolation mode.
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index b7c94b9..b202f74 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -544,6 +544,7 @@
(*graphics)->hwnd = NULL;
(*graphics)->smoothing = SmoothingModeDefault;
(*graphics)->compqual = CompositingQualityDefault;
+ (*graphics)->interpolation = InterpolationModeDefault;
return Ok;
}
@@ -811,6 +812,18 @@
return Ok;
}
+/* FIXME: Interpolation mode is not used anywhere except the getter/setter. */
+GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics *graphics,
+ InterpolationMode *mode)
+{
+ if(!graphics || !mode)
+ return InvalidParameter;
+
+ *mode = graphics->interpolation;
+
+ return Ok;
+}
+
/* FIXME: Smoothing mode is not used anywhere except the getter/setter. */
GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics *graphics, SmoothingMode *mode)
{
@@ -833,6 +846,17 @@
return Ok;
}
+GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics *graphics,
+ InterpolationMode mode)
+{
+ if(!graphics)
+ return InvalidParameter;
+
+ graphics->interpolation = mode;
+
+ return Ok;
+}
+
GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics *graphics, SmoothingMode mode)
{
if(!graphics)