gdiplus: Added smoothing modes.
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index eb37995..f1f5f6c 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -542,6 +542,7 @@
(*graphics)->hdc = hdc;
(*graphics)->hwnd = NULL;
+ (*graphics)->smoothing = SmoothingModeDefault;
return Ok;
}
@@ -796,3 +797,24 @@
return draw_pie(graphics, brush->gdibrush, GetStockObject(NULL_PEN), x, y,
width, height, startAngle, sweepAngle);
}
+
+/* FIXME: Smoothing mode is not used anywhere except the getter/setter. */
+GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics *graphics, SmoothingMode *mode)
+{
+ if(!graphics || !mode)
+ return InvalidParameter;
+
+ *mode = graphics->smoothing;
+
+ return Ok;
+}
+
+GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics *graphics, SmoothingMode mode)
+{
+ if(!graphics)
+ return InvalidParameter;
+
+ graphics->smoothing = mode;
+
+ return Ok;
+}