Evan Stade : gdiplus: Implemented GdipDrawLineI.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jun 13 06:14:01 CDT 2007


Module: wine
Branch: master
Commit: 2689b18ea4fcbb3adb65919960aca7b78ab42a8b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2689b18ea4fcbb3adb65919960aca7b78ab42a8b

Author: Evan Stade <estade at gmail.com>
Date:   Tue Jun 12 10:44:31 2007 -0700

gdiplus: Implemented GdipDrawLineI.

---

 dlls/gdiplus/gdiplus.spec |    2 +-
 dlls/gdiplus/graphics.c   |   16 ++++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index c80fbbb..04b2b7b 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -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
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 37af012..5f97002 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -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;
+}




More information about the wine-cvs mailing list