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
1f4940ae
Commit
1f4940ae
authored
Apr 28, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipSetLineBlend.
parent
b05cf906
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
brush.c
dlls/gdiplus/brush.c
+25
-5
No files found.
dlls/gdiplus/brush.c
View file @
1f4940ae
...
...
@@ -1115,15 +1115,35 @@ GpStatus WINGDIPAPI GdipScaleTextureTransform(GpTexture* brush,
}
GpStatus
WINGDIPAPI
GdipSetLineBlend
(
GpLineGradient
*
brush
,
GDIPCONST
REAL
*
blend
,
GDIPCONST
REAL
*
positions
,
INT
count
)
GDIPCONST
REAL
*
factors
,
GDIPCONST
REAL
*
positions
,
INT
count
)
{
static
int
call
s
;
REAL
*
new_blendfac
,
*
new_blendpo
s
;
if
(
!
brush
||
!
blend
||
!
positions
||
count
<=
0
)
TRACE
(
"(%p, %p, %p, %i)
\n
"
,
brush
,
factors
,
positions
,
count
);
if
(
!
brush
||
!
factors
||
!
positions
||
count
<=
0
||
(
count
>=
2
&&
(
positions
[
0
]
!=
0
.
0
f
||
positions
[
count
-
1
]
!=
1
.
0
f
)))
return
InvalidParameter
;
if
(
!
(
calls
++
))
FIXME
(
"not implemented
\n
"
);
new_blendfac
=
GdipAlloc
(
count
*
sizeof
(
REAL
));
new_blendpos
=
GdipAlloc
(
count
*
sizeof
(
REAL
));
if
(
!
new_blendfac
||
!
new_blendpos
)
{
GdipFree
(
new_blendfac
);
GdipFree
(
new_blendpos
);
return
OutOfMemory
;
}
memcpy
(
new_blendfac
,
factors
,
count
*
sizeof
(
REAL
));
memcpy
(
new_blendpos
,
positions
,
count
*
sizeof
(
REAL
));
GdipFree
(
brush
->
blendfac
);
GdipFree
(
brush
->
blendpos
);
brush
->
blendcount
=
count
;
brush
->
blendfac
=
new_blendfac
;
brush
->
blendpos
=
new_blendpos
;
return
Ok
;
}
...
...
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