Commit 10b575bc authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Added GdipSetPageUnit.

parent 64675264
...@@ -306,7 +306,7 @@ ...@@ -306,7 +306,7 @@
@ stub GdipGetMetafileHeaderFromWmf @ stub GdipGetMetafileHeaderFromWmf
@ stub GdipGetNearestColor @ stub GdipGetNearestColor
@ stub GdipGetPageScale @ stub GdipGetPageScale
@ stub GdipGetPageUnit @ stdcall GdipGetPageUnit(ptr ptr)
@ stub GdipGetPathData @ stub GdipGetPathData
@ stdcall GdipGetPathFillMode(ptr ptr) @ stdcall GdipGetPathFillMode(ptr ptr)
@ stub GdipGetPathGradientBlend @ stub GdipGetPathGradientBlend
...@@ -525,7 +525,7 @@ ...@@ -525,7 +525,7 @@
@ stub GdipSetMatrixElements @ stub GdipSetMatrixElements
@ stub GdipSetMetafileDownLevelRasterizationLimit @ stub GdipSetMetafileDownLevelRasterizationLimit
@ stub GdipSetPageScale @ stub GdipSetPageScale
@ stub GdipSetPageUnit @ stdcall GdipSetPageUnit(ptr long)
@ stdcall GdipSetPathFillMode(ptr long) @ stdcall GdipSetPathFillMode(ptr long)
@ stub GdipSetPathGradientBlend @ stub GdipSetPathGradientBlend
@ stub GdipSetPathGradientCenterColor @ stub GdipSetPathGradientCenterColor
......
...@@ -65,6 +65,7 @@ struct GpGraphics{ ...@@ -65,6 +65,7 @@ struct GpGraphics{
CompositingQuality compqual; CompositingQuality compqual;
InterpolationMode interpolation; InterpolationMode interpolation;
PixelOffsetMode pixeloffset; PixelOffsetMode pixeloffset;
GpUnit unit; /* page unit */
}; };
struct GpBrush{ struct GpBrush{
......
...@@ -701,6 +701,7 @@ GpStatus WINGDIPAPI GdipCreateFromHDC(HDC hdc, GpGraphics **graphics) ...@@ -701,6 +701,7 @@ GpStatus WINGDIPAPI GdipCreateFromHDC(HDC hdc, GpGraphics **graphics)
(*graphics)->compqual = CompositingQualityDefault; (*graphics)->compqual = CompositingQualityDefault;
(*graphics)->interpolation = InterpolationModeDefault; (*graphics)->interpolation = InterpolationModeDefault;
(*graphics)->pixeloffset = PixelOffsetModeDefault; (*graphics)->pixeloffset = PixelOffsetModeDefault;
(*graphics)->unit = UnitDisplay;
return Ok; return Ok;
} }
...@@ -1018,6 +1019,16 @@ GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics *graphics, ...@@ -1018,6 +1019,16 @@ GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics *graphics,
return Ok; return Ok;
} }
GpStatus WINGDIPAPI GdipGetPageUnit(GpGraphics *graphics, GpUnit *unit)
{
if(!graphics || !unit)
return InvalidParameter;
*unit = graphics->unit;
return Ok;
}
/* FIXME: Pixel offset mode is not used anywhere except the getter/setter. */ /* FIXME: Pixel offset mode is not used anywhere except the getter/setter. */
GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics *graphics, PixelOffsetMode GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics *graphics, PixelOffsetMode
*mode) *mode)
...@@ -1083,6 +1094,16 @@ GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics *graphics, ...@@ -1083,6 +1094,16 @@ GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics *graphics,
return Ok; return Ok;
} }
GpStatus WINGDIPAPI GdipSetPageUnit(GpGraphics *graphics, GpUnit unit)
{
if(!graphics)
return InvalidParameter;
graphics->unit = unit;
return Ok;
}
GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics *graphics, PixelOffsetMode GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics *graphics, PixelOffsetMode
mode) mode)
{ {
......
...@@ -62,12 +62,14 @@ GpStatus WINGDIPAPI GdipFillPolygonI(GpGraphics*,GpBrush*,GDIPCONST GpPoint*,INT ...@@ -62,12 +62,14 @@ GpStatus WINGDIPAPI GdipFillPolygonI(GpGraphics*,GpBrush*,GDIPCONST GpPoint*,INT
GpFillMode); GpFillMode);
GpStatus WINGDIPAPI GdipGetCompositingQuality(GpGraphics*,CompositingQuality*); GpStatus WINGDIPAPI GdipGetCompositingQuality(GpGraphics*,CompositingQuality*);
GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics*,InterpolationMode*); GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics*,InterpolationMode*);
GpStatus WINGDIPAPI GdipGetPageUnit(GpGraphics*,GpUnit*);
GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics*,PixelOffsetMode*); GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics*,PixelOffsetMode*);
GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics*,SmoothingMode*); GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics*,SmoothingMode*);
GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics*,GraphicsState); GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics*,GraphicsState);
GpStatus WINGDIPAPI GdipSaveGraphics(GpGraphics*,GraphicsState*); GpStatus WINGDIPAPI GdipSaveGraphics(GpGraphics*,GraphicsState*);
GpStatus WINGDIPAPI GdipSetCompositingQuality(GpGraphics*,CompositingQuality); GpStatus WINGDIPAPI GdipSetCompositingQuality(GpGraphics*,CompositingQuality);
GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics*,InterpolationMode); GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics*,InterpolationMode);
GpStatus WINGDIPAPI GdipSetPageUnit(GpGraphics*,GpUnit);
GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics*,PixelOffsetMode); GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics*,PixelOffsetMode);
GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics*,SmoothingMode); GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics*,SmoothingMode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment