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
55f24da9
Commit
55f24da9
authored
Oct 27, 2014
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Check the hatch masks instead of the rop masks for the null and mask optimization case.
parent
86c24976
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
objects.c
dlls/gdi32/dibdrv/objects.c
+8
-1
No files found.
dlls/gdi32/dibdrv/objects.c
View file @
55f24da9
...
...
@@ -1815,6 +1815,8 @@ static BOOL create_pattern_brush_bits( dib_brush *brush )
size
-=
4
;
}
if
(
!
rop_needs_and_mask
(
brush
->
rop
))
brush
->
masks
.
and
=
NULL
;
/* ignore the and mask */
return
TRUE
;
}
...
...
@@ -1861,6 +1863,9 @@ static BOOL create_hatch_brush_bits(dibdrv_physdev *pdev, dib_brush *brush, BOOL
brush
->
dib
.
funcs
->
create_rop_masks
(
&
brush
->
dib
,
hatches
[
brush
->
hatch
],
&
fg_mask
,
&
bg_mask
,
&
brush
->
masks
);
if
(
!
fg_mask
.
and
&&
!
bg_mask
.
and
)
brush
->
masks
.
and
=
NULL
;
/* ignore the and mask */
return
TRUE
;
}
...
...
@@ -1878,6 +1883,9 @@ static BOOL create_dither_brush_bits(dibdrv_physdev *pdev, dib_brush *brush, BOO
rgb
=
make_rgb_colorref
(
pdev
->
dev
.
hdc
,
&
pdev
->
dib
,
brush
->
colorref
,
&
got_pixel
,
&
pixel
);
brush
->
dib
.
funcs
->
create_dither_masks
(
&
brush
->
dib
,
brush
->
rop
,
rgb
,
&
brush
->
masks
);
if
(
!
rop_needs_and_mask
(
brush
->
rop
))
brush
->
masks
.
and
=
NULL
;
/* ignore the and mask */
return
TRUE
;
}
...
...
@@ -2018,7 +2026,6 @@ static BOOL pattern_brush(dibdrv_physdev *pdev, dib_brush *brush, dib_info *dib,
ERR
(
"Unexpected brush style %d
\n
"
,
brush
->
style
);
return
FALSE
;
}
if
(
!
rop_needs_and_mask
(
brush
->
rop
))
brush
->
masks
.
and
=
NULL
;
/* ignore the and mask */
}
GetBrushOrgEx
(
pdev
->
dev
.
hdc
,
&
origin
);
...
...
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