gdiplus: Partly implement GdipCreateFromHDC2
This commit is contained in:
parent
ca4d35fe48
commit
bfffb4f461
|
@ -89,7 +89,7 @@
|
|||
@ stub GdipCreateFontFromDC
|
||||
@ stdcall GdipCreateFontFromLogfontA(ptr ptr ptr)
|
||||
@ stdcall GdipCreateFontFromLogfontW(ptr ptr ptr)
|
||||
@ stub GdipCreateFromHDC2
|
||||
@ stdcall GdipCreateFromHDC2(long long ptr)
|
||||
@ stdcall GdipCreateFromHDC(long ptr)
|
||||
@ stdcall GdipCreateFromHWND(long ptr)
|
||||
@ stub GdipCreateFromHWNDICM
|
||||
|
|
|
@ -744,9 +744,19 @@ end:
|
|||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipCreateFromHDC(HDC hdc, GpGraphics **graphics)
|
||||
{
|
||||
return GdipCreateFromHDC2(hdc, NULL, graphics);
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipCreateFromHDC2(HDC hdc, HANDLE hDevice, GpGraphics **graphics)
|
||||
{
|
||||
GpStatus retval;
|
||||
|
||||
if(hDevice != NULL) {
|
||||
FIXME("Don't know how to hadle parameter hDevice\n");
|
||||
return NotImplemented;
|
||||
}
|
||||
|
||||
if(hdc == NULL)
|
||||
return OutOfMemory;
|
||||
|
||||
|
|
|
@ -51,6 +51,7 @@ GpStatus WINGDIPAPI GdipSetPenStartCap(GpPen*,GpLineCap);
|
|||
GpStatus WINGDIPAPI GdipSetPenWidth(GpPen*,REAL);
|
||||
|
||||
GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**);
|
||||
GpStatus WINGDIPAPI GdipCreateFromHDC2(HDC,HANDLE,GpGraphics**);
|
||||
GpStatus WINGDIPAPI GdipCreateFromHWND(HWND,GpGraphics**);
|
||||
GpStatus WINGDIPAPI GdipCreateLineBrush(GDIPCONST GpPointF*,GDIPCONST GpPointF*,
|
||||
ARGB,ARGB,GpWrapMode,GpLineGradient**);
|
||||
|
|
Loading…
Reference in New Issue