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
c8d61899
Commit
c8d61899
authored
Aug 18, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Make sure that pattern info is initialized before being used.
parent
40bda4a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
objects.c
dlls/gdi32/dibdrv/objects.c
+3
-3
No files found.
dlls/gdi32/dibdrv/objects.c
View file @
c8d61899
...
...
@@ -1897,9 +1897,6 @@ 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
->
bmiHeader
.
biClrUsed
&&
brush
->
pattern
.
usage
==
DIB_PAL_COLORS
)
{
copy_bitmapinfo
(
info
,
brush
->
pattern
.
info
);
...
...
@@ -1912,6 +1909,9 @@ 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
)
dither
=
FALSE
;
/* monochrome DDB pattern brushes don't get dithered */
if
(
pattern
.
bit_count
==
1
&&
!
pattern
.
color_table
&&
(
pdev
->
dib
.
bit_count
!=
1
||
pdev
->
dib
.
color_table
))
{
...
...
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