22 #include <freerdp/config.h>
27 #include <freerdp/api.h>
28 #include <freerdp/freerdp.h>
29 #include <freerdp/gdi/gdi.h>
31 #include <freerdp/gdi/pen.h>
46 HGDI_PEN gdi_CreatePen(UINT32 fnPenStyle, UINT32 nWidth, UINT32 crColor, UINT32 format,
47 const gdiPalette* palette)
52 hPen->objectType = GDIOBJECT_PEN;
53 hPen->style = fnPenStyle;
54 hPen->color = crColor;
55 WINPR_ASSERT(nWidth <= INT32_MAX);
56 hPen->width = (int)nWidth;
57 hPen->format = format;
58 hPen->palette = palette;
62 UINT32 gdi_GetPenColor(
HGDI_PEN pen, UINT32 format)
64 return FreeRDPConvertColor(pen->color, pen->format, format, pen->palette);