gdiplus: Implemented GdipDrawLineI.
This commit is contained in:
parent
0f63ad92cc
commit
2689b18ea4
dlls/gdiplus
|
@ -175,7 +175,7 @@
|
|||
@ stub GdipDrawImageRectRect
|
||||
@ stub GdipDrawImageRectRectI
|
||||
@ stub GdipDrawLine
|
||||
@ stub GdipDrawLineI
|
||||
@ stdcall GdipDrawLineI(ptr ptr long long long long)
|
||||
@ stub GdipDrawLines
|
||||
@ stub GdipDrawLinesI
|
||||
@ stub GdipDrawPath
|
||||
|
|
|
@ -65,3 +65,19 @@ GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics)
|
|||
|
||||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipDrawLineI(GpGraphics *graphics, GpPen *pen, INT x1,
|
||||
INT y1, INT x2, INT y2)
|
||||
{
|
||||
HGDIOBJ old_obj;
|
||||
|
||||
if(!pen || !graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
old_obj = SelectObject(graphics->hdc, pen->gdipen);
|
||||
MoveToEx(graphics->hdc, x1, y1, NULL);
|
||||
LineTo(graphics->hdc, x2, y2);
|
||||
SelectObject(graphics->hdc, old_obj);
|
||||
|
||||
return Ok;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue