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
a796ad5e
Commit
a796ad5e
authored
Nov 29, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Avoid creating a copy of the pattern bits for the R2_COPYPEN case.
parent
7339308e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
objects.c
dlls/gdi32/dibdrv/objects.c
+7
-1
No files found.
dlls/gdi32/dibdrv/objects.c
View file @
a796ad5e
...
@@ -1782,7 +1782,7 @@ static BOOL alloc_brush_mask_bits( dib_brush *brush )
...
@@ -1782,7 +1782,7 @@ static BOOL alloc_brush_mask_bits( dib_brush *brush )
static
void
free_brush_mask_bits
(
dib_brush
*
brush
)
static
void
free_brush_mask_bits
(
dib_brush
*
brush
)
{
{
HeapFree
(
GetProcessHeap
(),
0
,
brush
->
masks
.
and
);
if
(
brush
->
masks
.
xor
!=
brush
->
dib
.
bits
.
ptr
)
HeapFree
(
GetProcessHeap
(),
0
,
brush
->
masks
.
xor
);
brush
->
masks
.
and
=
brush
->
masks
.
xor
=
NULL
;
brush
->
masks
.
and
=
brush
->
masks
.
xor
=
NULL
;
}
}
...
@@ -1798,6 +1798,12 @@ static BOOL create_pattern_brush_bits( dib_brush *brush )
...
@@ -1798,6 +1798,12 @@ static BOOL create_pattern_brush_bits( dib_brush *brush )
DWORD
*
brush_bits
=
brush
->
dib
.
bits
.
ptr
;
DWORD
*
brush_bits
=
brush
->
dib
.
bits
.
ptr
;
DWORD
*
and_bits
,
*
xor_bits
;
DWORD
*
and_bits
,
*
xor_bits
;
if
(
brush
->
rop
==
R2_COPYPEN
)
{
brush
->
masks
.
xor
=
brush_bits
;
/* use the pattern bits directly */
return
TRUE
;
}
if
(
!
alloc_brush_mask_bits
(
brush
))
return
FALSE
;
if
(
!
alloc_brush_mask_bits
(
brush
))
return
FALSE
;
and_bits
=
brush
->
masks
.
and
;
and_bits
=
brush
->
masks
.
and
;
...
...
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