reactos/dll/win32/gdi32/objects/pen.c
Amine Khaldi c424146e2c Create a branch for cmake bringup.
svn path=/branches/cmake-bringup/; revision=48236
2010-07-24 18:52:44 +00:00

34 lines
723 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "precomp.h"
#define NDEBUG
#include <debug.h>
/*
* @implemented
*/
HPEN WINAPI
CreatePenIndirect(
const LOGPEN *lplgpn)
{
/* Note same behoir as Windows 2000/XP/VISTA, they do not care if plgpn is NULL´, it will crash */
return CreatePen(lplgpn->lopnStyle, lplgpn->lopnWidth.x, lplgpn->lopnColor);
}
/*
* @implemented
*/
HPEN WINAPI
CreatePen(
int nPenStyle,
int nWidth,
COLORREF crColor)
{
/* FIXME Some part need be done in user mode */
if (nPenStyle > PS_DASHDOTDOT)
{
if (nPenStyle == PS_NULL) return GetStockObject(NULL_PEN);
if (nPenStyle != PS_INSIDEFRAME) nPenStyle = PS_SOLID;
}
return NtGdiCreatePen(nPenStyle, nWidth, crColor, NULL);
}