Commit 2689b18e authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Implemented GdipDrawLineI.

parent 0f63ad92
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment