mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 07:20:30 +00:00
gdiplus: Stub for GdipGetNearestColor.
This commit is contained in:
parent
0537a122c7
commit
63ae714fc6
|
@ -320,7 +320,7 @@
|
|||
@ stdcall GdipGetMetafileHeaderFromMetafile(ptr ptr)
|
||||
@ stub GdipGetMetafileHeaderFromStream
|
||||
@ stub GdipGetMetafileHeaderFromWmf
|
||||
@ stub GdipGetNearestColor
|
||||
@ stdcall GdipGetNearestColor(ptr ptr)
|
||||
@ stdcall GdipGetPageScale(ptr ptr)
|
||||
@ stdcall GdipGetPageUnit(ptr ptr)
|
||||
@ stdcall GdipGetPathData(ptr ptr)
|
||||
|
|
|
@ -2456,6 +2456,19 @@ GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics *graphics,
|
|||
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)
|
||||
{
|
||||
TRACE("(%p, %p)\n", graphics, scale);
|
||||
|
|
|
@ -485,6 +485,7 @@ static void test_Get_Release_DC(void)
|
|||
GpRegion *clip;
|
||||
INT i;
|
||||
BOOL res;
|
||||
ARGB color = 0x00000000;
|
||||
|
||||
pt[0].X = 10;
|
||||
pt[0].Y = 10;
|
||||
|
@ -658,6 +659,8 @@ static void test_Get_Release_DC(void)
|
|||
expect(ObjectBusy, status); status = Ok;
|
||||
status = GdipGetInterpolationMode(graphics, &intmode);
|
||||
expect(ObjectBusy, status); status = Ok;
|
||||
status = GdipGetNearestColor(graphics, &color);
|
||||
expect(ObjectBusy, status); status = Ok;
|
||||
status = GdipGetPageScale(graphics, &r);
|
||||
expect(ObjectBusy, status); status = Ok;
|
||||
status = GdipGetPageUnit(graphics, &unit);
|
||||
|
|
|
@ -196,6 +196,7 @@ GpStatus WINGDIPAPI GdipGetDpiX(GpGraphics*,REAL*);
|
|||
GpStatus WINGDIPAPI GdipGetDpiY(GpGraphics*,REAL*);
|
||||
GpStatus WINGDIPAPI GdipGetImageGraphicsContext(GpImage*,GpGraphics**);
|
||||
GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics*,InterpolationMode*);
|
||||
GpStatus WINGDIPAPI GdipGetNearestColor(GpGraphics*,ARGB*);
|
||||
GpStatus WINGDIPAPI GdipGetPageScale(GpGraphics*,REAL*);
|
||||
GpStatus WINGDIPAPI GdipGetPageUnit(GpGraphics*,GpUnit*);
|
||||
GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics*,PixelOffsetMode*);
|
||||
|
|
Loading…
Reference in a new issue