Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
66507e86
Commit
66507e86
authored
Aug 28, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Do not dither non-extended wide pens.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1c56b3b5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
objects.c
dlls/gdi32/dibdrv/objects.c
+7
-5
dib.c
dlls/gdi32/tests/dib.c
+1
-1
No files found.
dlls/gdi32/dibdrv/objects.c
View file @
66507e86
...
...
@@ -2073,7 +2073,7 @@ static BOOL brush_needs_dithering( dibdrv_physdev *pdev, COLORREF color )
}
static
void
select_brush
(
dibdrv_physdev
*
pdev
,
dib_brush
*
brush
,
const
LOGBRUSH
*
logbrush
,
const
struct
brush_pattern
*
pattern
)
const
LOGBRUSH
*
logbrush
,
const
struct
brush_pattern
*
pattern
,
BOOL
dither
)
{
free_pattern_brush
(
brush
);
...
...
@@ -2094,7 +2094,7 @@ static void select_brush( dibdrv_physdev *pdev, dib_brush *brush,
case
BS_NULL
:
brush
->
rects
=
null_brush
;
break
;
case
BS_HATCHED
:
brush
->
rects
=
pattern_brush
;
break
;
case
BS_SOLID
:
brush
->
rects
=
brush_needs_dithering
(
pdev
,
brush
->
colorref
)
?
pattern_brush
:
solid_brush
;
brush
->
rects
=
dither
&&
brush_needs_dithering
(
pdev
,
brush
->
colorref
)
?
pattern_brush
:
solid_brush
;
break
;
}
}
...
...
@@ -2116,7 +2116,7 @@ HBRUSH dibdrv_SelectBrush( PHYSDEV dev, HBRUSH hbrush, const struct brush_patter
if
(
hbrush
==
GetStockObject
(
DC_BRUSH
))
logbrush
.
lbColor
=
dc
->
dcBrushColor
;
select_brush
(
pdev
,
&
pdev
->
brush
,
&
logbrush
,
pattern
);
select_brush
(
pdev
,
&
pdev
->
brush
,
&
logbrush
,
pattern
,
TRUE
);
return
hbrush
;
}
...
...
@@ -2130,6 +2130,7 @@ HPEN dibdrv_SelectPen( PHYSDEV dev, HPEN hpen, const struct brush_pattern *patte
LOGPEN
logpen
;
LOGBRUSH
logbrush
;
EXTLOGPEN
*
elp
=
NULL
;
BOOL
dither
=
TRUE
;
TRACE
(
"(%p, %p)
\n
"
,
dev
,
hpen
);
...
...
@@ -2157,6 +2158,7 @@ HPEN dibdrv_SelectPen( PHYSDEV dev, HPEN hpen, const struct brush_pattern *patte
logbrush
.
lbStyle
=
BS_SOLID
;
logbrush
.
lbColor
=
logpen
.
lopnColor
;
logbrush
.
lbHatch
=
0
;
dither
=
FALSE
;
}
pdev
->
pen_join
=
logpen
.
lopnStyle
&
PS_JOIN_MASK
;
...
...
@@ -2167,7 +2169,7 @@ HPEN dibdrv_SelectPen( PHYSDEV dev, HPEN hpen, const struct brush_pattern *patte
logbrush
.
lbColor
=
dc
->
dcPenColor
;
set_dash_pattern
(
&
pdev
->
pen_pattern
,
0
,
NULL
);
select_brush
(
pdev
,
&
pdev
->
pen_brush
,
&
logbrush
,
pattern
);
select_brush
(
pdev
,
&
pdev
->
pen_brush
,
&
logbrush
,
pattern
,
dither
);
pdev
->
pen_style
=
logpen
.
lopnStyle
&
PS_STYLE_MASK
;
...
...
@@ -2234,7 +2236,7 @@ COLORREF dibdrv_SetDCBrushColor( PHYSDEV dev, COLORREF color )
if
(
dc
->
hBrush
==
GetStockObject
(
DC_BRUSH
))
{
LOGBRUSH
logbrush
=
{
BS_SOLID
,
color
,
0
};
select_brush
(
pdev
,
&
pdev
->
brush
,
&
logbrush
,
NULL
);
select_brush
(
pdev
,
&
pdev
->
brush
,
&
logbrush
,
NULL
,
TRUE
);
}
return
color
;
}
dlls/gdi32/tests/dib.c
View file @
66507e86
...
...
@@ -2781,7 +2781,7 @@ static void draw_graphics(HDC hdc, const BITMAPINFO *bmi, BYTE *bits)
LineTo
(
hdc
,
wide_lines
[
i
].
right
,
wide_lines
[
i
].
bottom
);
}
compare_hash
_broken_todo
(
hdc
,
bmi
,
bits
,
"wide pen"
,
0
,
is_ddb
);
compare_hash
(
hdc
,
bmi
,
bits
,
"wide pen"
);
SelectObject
(
hdc
,
orig_pen
);
DeleteObject
(
wide_pen
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment