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
abdce5c2
Commit
abdce5c2
authored
Nov 30, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Use the faster memset for vertical gradients.
parent
d10d9560
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
primitives.c
dlls/gdi32/dibdrv/primitives.c
+3
-4
No files found.
dlls/gdi32/dibdrv/primitives.c
View file @
abdce5c2
...
...
@@ -4520,7 +4520,7 @@ static BOOL gradient_rect_8888( const dib_info *dib, const RECT *rc, const TRIVE
for
(
y
=
rc
->
top
;
y
<
rc
->
bottom
;
y
++
,
ptr
+=
dib
->
stride
/
4
)
{
DWORD
val
=
gradient_rgb_8888
(
v
,
y
-
v
[
0
].
y
,
v
[
1
].
y
-
v
[
0
].
y
);
for
(
x
=
0
;
x
<
rc
->
right
-
rc
->
left
;
x
++
)
ptr
[
x
]
=
val
;
memset_32
(
ptr
,
val
,
rc
->
right
-
rc
->
left
)
;
}
break
;
...
...
@@ -4570,7 +4570,7 @@ static BOOL gradient_rect_32( const dib_info *dib, const RECT *rc, const TRIVERT
break
;
case
GRADIENT_FILL_RECT_V
:
for
(
y
=
rc
->
top
;
y
<
rc
->
bottom
;
y
++
)
for
(
y
=
rc
->
top
;
y
<
rc
->
bottom
;
y
++
,
ptr
+=
dib
->
stride
/
4
)
{
DWORD
val
=
gradient_rgb_24
(
v
,
y
-
v
[
0
].
y
,
v
[
1
].
y
-
v
[
0
].
y
);
if
(
dib
->
red_len
==
8
&&
dib
->
green_len
==
8
&&
dib
->
blue_len
==
8
)
...
...
@@ -4582,8 +4582,7 @@ static BOOL gradient_rect_32( const dib_info *dib, const RECT *rc, const TRIVERT
put_field
(
val
>>
8
,
dib
->
green_shift
,
dib
->
green_len
)
|
put_field
(
val
,
dib
->
blue_shift
,
dib
->
blue_len
));
for
(
x
=
0
;
x
<
rc
->
right
-
rc
->
left
;
x
++
)
ptr
[
x
]
=
val
;
ptr
+=
dib
->
stride
/
4
;
memset_32
(
ptr
,
val
,
rc
->
right
-
rc
->
left
);
}
break
;
...
...
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