gdiplus: Stub for GdipGetNearestColor.
This commit is contained in:
parent
0537a122c7
commit
63ae714fc6
|
@ -320,7 +320,7 @@
|
||||||
@ stdcall GdipGetMetafileHeaderFromMetafile(ptr ptr)
|
@ stdcall GdipGetMetafileHeaderFromMetafile(ptr ptr)
|
||||||
@ stub GdipGetMetafileHeaderFromStream
|
@ stub GdipGetMetafileHeaderFromStream
|
||||||
@ stub GdipGetMetafileHeaderFromWmf
|
@ stub GdipGetMetafileHeaderFromWmf
|
||||||
@ stub GdipGetNearestColor
|
@ stdcall GdipGetNearestColor(ptr ptr)
|
||||||
@ stdcall GdipGetPageScale(ptr ptr)
|
@ stdcall GdipGetPageScale(ptr ptr)
|
||||||
@ stdcall GdipGetPageUnit(ptr ptr)
|
@ stdcall GdipGetPageUnit(ptr ptr)
|
||||||
@ stdcall GdipGetPathData(ptr ptr)
|
@ stdcall GdipGetPathData(ptr ptr)
|
||||||
|
|
|
@ -2456,6 +2456,19 @@ GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics *graphics,
|
||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GpStatus WINGDIPAPI GdipGetNearestColor(GpGraphics *graphics, ARGB* argb)
|
||||||
|
{
|
||||||
|
if(!graphics || !argb)
|
||||||
|
return InvalidParameter;
|
||||||
|
|
||||||
|
if(graphics->busy)
|
||||||
|
return ObjectBusy;
|
||||||
|
|
||||||
|
FIXME("(%p, %p): stub\n", graphics, argb);
|
||||||
|
|
||||||
|
return NotImplemented;
|
||||||
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipGetPageScale(GpGraphics *graphics, REAL *scale)
|
GpStatus WINGDIPAPI GdipGetPageScale(GpGraphics *graphics, REAL *scale)
|
||||||
{
|
{
|
||||||
TRACE("(%p, %p)\n", graphics, scale);
|
TRACE("(%p, %p)\n", graphics, scale);
|
||||||
|
|
|
@ -485,6 +485,7 @@ static void test_Get_Release_DC(void)
|
||||||
GpRegion *clip;
|
GpRegion *clip;
|
||||||
INT i;
|
INT i;
|
||||||
BOOL res;
|
BOOL res;
|
||||||
|
ARGB color = 0x00000000;
|
||||||
|
|
||||||
pt[0].X = 10;
|
pt[0].X = 10;
|
||||||
pt[0].Y = 10;
|
pt[0].Y = 10;
|
||||||
|
@ -658,6 +659,8 @@ static void test_Get_Release_DC(void)
|
||||||
expect(ObjectBusy, status); status = Ok;
|
expect(ObjectBusy, status); status = Ok;
|
||||||
status = GdipGetInterpolationMode(graphics, &intmode);
|
status = GdipGetInterpolationMode(graphics, &intmode);
|
||||||
expect(ObjectBusy, status); status = Ok;
|
expect(ObjectBusy, status); status = Ok;
|
||||||
|
status = GdipGetNearestColor(graphics, &color);
|
||||||
|
expect(ObjectBusy, status); status = Ok;
|
||||||
status = GdipGetPageScale(graphics, &r);
|
status = GdipGetPageScale(graphics, &r);
|
||||||
expect(ObjectBusy, status); status = Ok;
|
expect(ObjectBusy, status); status = Ok;
|
||||||
status = GdipGetPageUnit(graphics, &unit);
|
status = GdipGetPageUnit(graphics, &unit);
|
||||||
|
|
|
@ -196,6 +196,7 @@ GpStatus WINGDIPAPI GdipGetDpiX(GpGraphics*,REAL*);
|
||||||
GpStatus WINGDIPAPI GdipGetDpiY(GpGraphics*,REAL*);
|
GpStatus WINGDIPAPI GdipGetDpiY(GpGraphics*,REAL*);
|
||||||
GpStatus WINGDIPAPI GdipGetImageGraphicsContext(GpImage*,GpGraphics**);
|
GpStatus WINGDIPAPI GdipGetImageGraphicsContext(GpImage*,GpGraphics**);
|
||||||
GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics*,InterpolationMode*);
|
GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics*,InterpolationMode*);
|
||||||
|
GpStatus WINGDIPAPI GdipGetNearestColor(GpGraphics*,ARGB*);
|
||||||
GpStatus WINGDIPAPI GdipGetPageScale(GpGraphics*,REAL*);
|
GpStatus WINGDIPAPI GdipGetPageScale(GpGraphics*,REAL*);
|
||||||
GpStatus WINGDIPAPI GdipGetPageUnit(GpGraphics*,GpUnit*);
|
GpStatus WINGDIPAPI GdipGetPageUnit(GpGraphics*,GpUnit*);
|
||||||
GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics*,PixelOffsetMode*);
|
GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics*,PixelOffsetMode*);
|
||||||
|
|
Loading…
Reference in New Issue