gdiplus: Implemented GdipDrawLineI.

This commit is contained in:
Evan Stade 2007-06-12 10:44:31 -07:00 committed by Alexandre Julliard
parent 0f63ad92cc
commit 2689b18ea4
2 changed files with 17 additions and 1 deletions

View File

@ -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

View File

@ -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;
}