From 8a32a579d8cf2e3f6b331cc03fafeeffc7b88d94 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 26 Jul 2007 18:17:32 +0000 Subject: [PATCH] sorry forgot this one svn path=/trunk/; revision=27872 --- reactos/dll/win32/gdi32/objects/pen.c | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 reactos/dll/win32/gdi32/objects/pen.c diff --git a/reactos/dll/win32/gdi32/objects/pen.c b/reactos/dll/win32/gdi32/objects/pen.c new file mode 100644 index 00000000000..62193c6fab3 --- /dev/null +++ b/reactos/dll/win32/gdi32/objects/pen.c @@ -0,0 +1,37 @@ +#include "precomp.h" + +#define NDEBUG +#include + +/* + * @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); +} +