mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 22:20:42 +00:00
gdiplus: Added GdipCreateMetafileFromEmf stub.
This commit is contained in:
parent
b7053b74ba
commit
5cc8c10e0e
|
@ -99,7 +99,7 @@
|
||||||
@ stub GdipCreateMatrix3
|
@ stub GdipCreateMatrix3
|
||||||
@ stub GdipCreateMatrix3I
|
@ stub GdipCreateMatrix3I
|
||||||
@ stdcall GdipCreateMatrix(ptr)
|
@ stdcall GdipCreateMatrix(ptr)
|
||||||
@ stub GdipCreateMetafileFromEmf
|
@ stdcall GdipCreateMetafileFromEmf(ptr long ptr)
|
||||||
@ stub GdipCreateMetafileFromFile
|
@ stub GdipCreateMetafileFromFile
|
||||||
@ stub GdipCreateMetafileFromStream
|
@ stub GdipCreateMetafileFromStream
|
||||||
@ stub GdipCreateMetafileFromWmf
|
@ stub GdipCreateMetafileFromWmf
|
||||||
|
|
|
@ -804,6 +804,20 @@ GpStatus WINGDIPAPI GdipCreateFromHWND(HWND hwnd, GpGraphics **graphics)
|
||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GpStatus WINGDIPAPI GdipCreateMetafileFromEmf(HENHMETAFILE hemf, BOOL delete,
|
||||||
|
GpMetafile **metafile)
|
||||||
|
{
|
||||||
|
static int calls;
|
||||||
|
|
||||||
|
if(!hemf || !metafile)
|
||||||
|
return InvalidParameter;
|
||||||
|
|
||||||
|
if(!(calls++))
|
||||||
|
FIXME("not implemented\n");
|
||||||
|
|
||||||
|
return NotImplemented;
|
||||||
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics)
|
GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics)
|
||||||
{
|
{
|
||||||
if(!graphics) return InvalidParameter;
|
if(!graphics) return InvalidParameter;
|
||||||
|
|
|
@ -46,6 +46,7 @@ GpStatus WINGDIPAPI GdipSetPenStartCap(GpPen*,GpLineCap);
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**);
|
GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**);
|
||||||
GpStatus WINGDIPAPI GdipCreateFromHWND(HWND,GpGraphics**);
|
GpStatus WINGDIPAPI GdipCreateFromHWND(HWND,GpGraphics**);
|
||||||
|
GpStatus WINGDIPAPI GdipCreateMetafileFromEmf(HENHMETAFILE,BOOL,GpMetafile**);
|
||||||
GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *);
|
GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *);
|
||||||
GpStatus WINGDIPAPI GdipDrawArc(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,REAL);
|
GpStatus WINGDIPAPI GdipDrawArc(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,REAL);
|
||||||
GpStatus WINGDIPAPI GdipDrawBezier(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,
|
GpStatus WINGDIPAPI GdipDrawBezier(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,
|
||||||
|
|
|
@ -29,6 +29,8 @@ class GpPath {};
|
||||||
class GpMatrix {};
|
class GpMatrix {};
|
||||||
class GpPathIterator {};
|
class GpPathIterator {};
|
||||||
class GpCustomLineCap {};
|
class GpCustomLineCap {};
|
||||||
|
class GpImage {};
|
||||||
|
class GpMetafile : public GpImage {};
|
||||||
|
|
||||||
#else /* end of c++ declarations */
|
#else /* end of c++ declarations */
|
||||||
|
|
||||||
|
@ -40,6 +42,8 @@ typedef struct GpPath GpPath;
|
||||||
typedef struct GpMatrix GpMatrix;
|
typedef struct GpMatrix GpMatrix;
|
||||||
typedef struct GpPathIterator GpPathIterator;
|
typedef struct GpPathIterator GpPathIterator;
|
||||||
typedef struct GpCustomLineCap GpCustomLineCap;
|
typedef struct GpCustomLineCap GpCustomLineCap;
|
||||||
|
typedef struct GpImage GpImage;
|
||||||
|
typedef struct GpMetafile GpMetafile;
|
||||||
|
|
||||||
#endif /* end of c declarations */
|
#endif /* end of c declarations */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue