Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7b3e6d01
Commit
7b3e6d01
authored
Aug 31, 2008
by
Adam Petaccia
Committed by
Alexandre Julliard
Sep 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipCreateTexture.
parent
cb88bbd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
brush.c
dlls/gdiplus/brush.c
+28
-2
No files found.
dlls/gdiplus/brush.c
View file @
7b3e6d01
...
...
@@ -373,12 +373,38 @@ GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB color, GpSolidFill **sf)
return
Ok
;
}
/*******************************************************************************
* GdipCreateTexture [GDIPLUS.@]
*
* PARAMS
* image [I] image to use
* wrapmode [I] optional
* texture [O] pointer to the resulting texturebrush
*
* RETURNS
* SUCCESS: Ok
* FAILURE: element of GpStatus
*/
GpStatus
WINGDIPAPI
GdipCreateTexture
(
GpImage
*
image
,
GpWrapMode
wrapmode
,
GpTexture
**
texture
)
{
FIXME
(
"stub: %p, %d %p
\n
"
,
image
,
wrapmode
,
texture
);
UINT
width
,
height
;
GpImageAttributes
attributes
;
GpStatus
stat
;
return
NotImplemented
;
TRACE
(
"%p, %d %p
\n
"
,
image
,
wrapmode
,
texture
);
if
(
!
(
image
&&
texture
))
return
InvalidParameter
;
stat
=
GdipGetImageWidth
(
image
,
&
width
);
if
(
stat
!=
Ok
)
return
stat
;
stat
=
GdipGetImageHeight
(
image
,
&
height
);
if
(
stat
!=
Ok
)
return
stat
;
attributes
.
wrap
=
wrapmode
;
return
GdipCreateTextureIA
(
image
,
&
attributes
,
0
,
0
,
width
,
height
,
texture
);
}
GpStatus
WINGDIPAPI
GdipCreateTexture2
(
GpImage
*
image
,
GpWrapMode
wrapmode
,
...
...
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