Commit 618425ac authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Fix skipping of zero-length dashes.

parent fd8597b2
......@@ -779,7 +779,7 @@ void reset_dash_origin(dibdrv_physdev *pdev)
static inline void skip_dash(dibdrv_physdev *pdev, unsigned int skip)
{
skip %= pdev->pen_pattern.total_len;
while(skip)
do
{
if(pdev->dash_pos.left_in_dash > skip)
{
......@@ -792,6 +792,7 @@ static inline void skip_dash(dibdrv_physdev *pdev, unsigned int skip)
pdev->dash_pos.left_in_dash = pdev->pen_pattern.dashes[pdev->dash_pos.cur_dash];
pdev->dash_pos.mark = !pdev->dash_pos.mark;
}
while (skip);
}
static void dashed_pen_line_callback(dibdrv_physdev *pdev, INT x, INT y)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment