Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
80ae5c96
Commit
80ae5c96
authored
Aug 25, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Always dither brush when painting to a 1-bpp device.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
103f2646
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
objects.c
dlls/gdi32/dibdrv/objects.c
+1
-1
dib.c
dlls/gdi32/tests/dib.c
+1
-1
No files found.
dlls/gdi32/dibdrv/objects.c
View file @
80ae5c96
...
...
@@ -1933,7 +1933,7 @@ static BOOL select_pattern_brush( dibdrv_physdev *pdev, dib_brush *brush, BOOL *
BITMAPINFO
*
info
=
(
BITMAPINFO
*
)
buffer
;
RGBQUAD
color_table
[
2
];
dib_info
pattern
;
BOOL
dither
=
(
brush
->
dib
.
bit_count
==
1
);
BOOL
dither
=
(
brush
->
dib
.
bit_count
==
1
)
||
(
pdev
->
dib
.
bit_count
==
1
)
;
if
(
brush
->
pattern
.
info
->
bmiHeader
.
biClrUsed
&&
brush
->
pattern
.
usage
==
DIB_PAL_COLORS
)
{
...
...
dlls/gdi32/tests/dib.c
View file @
80ae5c96
...
...
@@ -1753,7 +1753,7 @@ static void draw_graphics(HDC hdc, const BITMAPINFO *bmi, BYTE *bits)
y
+=
25
;
}
}
compare_hash
_broken_todo
(
hdc
,
bmi
,
bits
,
"top-down 8888 dib brush patblt"
,
0
,
dib_is_1bpp
);
compare_hash
(
hdc
,
bmi
,
bits
,
"top-down 8888 dib brush patblt"
);
SelectObject
(
hdc
,
orig_brush
);
DeleteObject
(
dib_brush
);
...
...
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