[ros-diffs] [tkreuzer] 27872: sorry forgot this one

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Thu Jul 26 20:17:32 CEST 2007


Author: tkreuzer
Date: Thu Jul 26 22:17:32 2007
New Revision: 27872

URL: http://svn.reactos.org/svn/reactos?rev=27872&view=rev
Log:
sorry forgot this one

Added:
    trunk/reactos/dll/win32/gdi32/objects/pen.c

Added: trunk/reactos/dll/win32/gdi32/objects/pen.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/pen.c?rev=27872&view=auto
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/pen.c (added)
+++ trunk/reactos/dll/win32/gdi32/objects/pen.c Thu Jul 26 22:17:32 2007
@@ -1,0 +1,37 @@
+#include "precomp.h"
+
+#define NDEBUG
+#include <debug.h>
+
+/*
+ * @implemented
+ */
+HPEN WINAPI
+CreatePenIndirect(
+    const LOGPEN *plgpn)
+{
+    if (plgpn)
+    {
+        return NtGdiCreatePen(plgpn->lopnStyle,
+        /* FIXME: MSDN says in docs for LOGPEN:
+           "If the pointer member is NULL, the pen is one pixel 
+           wide on raster devices." Do we need to handle this? */
+                              plgpn->lopnWidth.x,
+                              plgpn->lopnColor,
+                              NULL);
+    }
+    return NULL;
+}
+
+/*
+ * @implemented
+ */
+HPEN WINAPI
+CreatePen(
+    int nPenStyle,
+    int nWidth,
+    COLORREF crColor)
+{
+    return NtGdiCreatePen(nPenStyle, nWidth, crColor, NULL);
+}
+




More information about the Ros-diffs mailing list