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
8a86f6c9
Commit
8a86f6c9
authored
May 23, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Don't use the DC colors when drawing a monochrome pattern to a monochrome DDB.
parent
139aeba3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
objects.c
dlls/gdi32/dibdrv/objects.c
+5
-2
No files found.
dlls/gdi32/dibdrv/objects.c
View file @
8a86f6c9
...
...
@@ -1870,6 +1870,9 @@ static BOOL select_pattern_brush( dibdrv_physdev *pdev, dib_brush *brush, BOOL *
dib_info
pattern
;
BOOL
dither
=
(
brush
->
dib
.
bit_count
==
1
);
if
(
pattern
.
bit_count
==
1
&&
!
pattern
.
color_table
)
dither
=
FALSE
;
/* monochrome DDB pattern brushes don't get dithered */
if
(
!
brush
->
pattern
.
info
)
{
BITMAPOBJ
*
bmp
=
GDI_GetObjPtr
(
brush
->
pattern
.
bitmap
,
OBJ_BITMAP
);
...
...
@@ -1892,7 +1895,8 @@ static BOOL select_pattern_brush( dibdrv_physdev *pdev, dib_brush *brush, BOOL *
init_dib_info_from_bitmapinfo
(
&
pattern
,
brush
->
pattern
.
info
,
brush
->
pattern
.
bits
.
ptr
);
}
if
(
pattern
.
bit_count
==
1
&&
!
pattern
.
color_table
)
if
(
pattern
.
bit_count
==
1
&&
!
pattern
.
color_table
&&
(
pdev
->
dib
.
bit_count
!=
1
||
pdev
->
dib
.
color_table
))
{
/* monochrome DDB pattern uses DC colors */
DWORD
pixel
;
...
...
@@ -1916,7 +1920,6 @@ static BOOL select_pattern_brush( dibdrv_physdev *pdev, dib_brush *brush, BOOL *
pattern
.
color_table
=
color_table
;
pattern
.
color_table_size
=
2
;
*
needs_reselect
=
TRUE
;
dither
=
FALSE
;
/* DDB pattern brushes don't get dithered */
}
copy_dib_color_info
(
&
brush
->
dib
,
&
pdev
->
dib
);
...
...
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