Huw Davies : gdi32: Add support for the null pen.
Alexandre Julliard
julliard at winehq.org
Fri May 13 11:17:52 CDT 2011
Module: wine
Branch: master
Commit: 74aab5f6000f68744808300cdf5aa67877cac5e2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=74aab5f6000f68744808300cdf5aa67877cac5e2
Author: Huw Davies <huw at codeweavers.com>
Date: Thu May 12 14:13:35 2011 +0100
gdi32: Add support for the null pen.
---
dlls/gdi32/dibdrv/objects.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi32/dibdrv/objects.c b/dlls/gdi32/dibdrv/objects.c
index 800db12..30be496 100644
--- a/dlls/gdi32/dibdrv/objects.c
+++ b/dlls/gdi32/dibdrv/objects.c
@@ -819,6 +819,11 @@ static BOOL dashed_pen_line(dibdrv_physdev *pdev, POINT *start, POINT *end)
return TRUE;
}
+static BOOL null_pen_line(dibdrv_physdev *pdev, POINT *start, POINT *end)
+{
+ return TRUE;
+}
+
static const dash_pattern dash_patterns[5] =
{
{0, {0}, 0}, /* PS_SOLID - a pseudo-pattern used to initialise unpatterned pens. */
@@ -892,6 +897,11 @@ HPEN CDECL dibdrv_SelectPen( PHYSDEV dev, HPEN hpen )
pdev->defer &= ~DEFER_PEN;
break;
+ case PS_NULL:
+ pdev->pen_line = null_pen_line;
+ pdev->defer &= ~DEFER_PEN;
+ break;
+
default:
break;
}
More information about the wine-cvs
mailing list