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
d41ee6e5
Commit
d41ee6e5
authored
Jan 29, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Implement d2d_bitmap_brush_GetTransform().
parent
3873c938
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
brush.c
dlls/d2d1/brush.c
+11
-8
d2d1_private.h
dlls/d2d1/d2d1_private.h
+1
-0
No files found.
dlls/d2d1/brush.c
View file @
d41ee6e5
...
...
@@ -147,9 +147,17 @@ HRESULT d2d_gradient_init(struct d2d_gradient *gradient, ID2D1RenderTarget *rend
static
void
d2d_brush_init
(
struct
d2d_brush
*
brush
,
ID2D1RenderTarget
*
render_target
,
enum
d2d_brush_type
type
,
const
D2D1_BRUSH_PROPERTIES
*
desc
,
const
struct
ID2D1BrushVtbl
*
vtbl
)
{
static
const
D2D1_MATRIX_3X2_F
identity
=
{
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
};
brush
->
ID2D1Brush_iface
.
lpVtbl
=
vtbl
;
brush
->
refcount
=
1
;
brush
->
opacity
=
desc
?
desc
->
opacity
:
1
.
0
f
;
brush
->
transform
=
desc
?
desc
->
transform
:
identity
;
brush
->
type
=
type
;
}
...
...
@@ -532,16 +540,11 @@ static float STDMETHODCALLTYPE d2d_bitmap_brush_GetOpacity(ID2D1BitmapBrush *ifa
static
void
STDMETHODCALLTYPE
d2d_bitmap_brush_GetTransform
(
ID2D1BitmapBrush
*
iface
,
D2D1_MATRIX_3X2_F
*
transform
)
{
static
const
D2D1_MATRIX_3X2_F
identity
=
{
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
};
struct
d2d_brush
*
brush
=
impl_from_ID2D1BitmapBrush
(
iface
);
FIXME
(
"iface %p, transform %p stub!
\n
"
,
iface
,
transform
);
TRACE
(
"iface %p, transform %p.
\n
"
,
iface
,
transform
);
*
transform
=
identity
;
*
transform
=
brush
->
transform
;
}
static
void
STDMETHODCALLTYPE
d2d_bitmap_brush_SetExtendModeX
(
ID2D1BitmapBrush
*
iface
,
D2D1_EXTEND_MODE
mode
)
...
...
dlls/d2d1/d2d1_private.h
View file @
d41ee6e5
...
...
@@ -109,6 +109,7 @@ struct d2d_brush
LONG
refcount
;
float
opacity
;
D2D1_MATRIX_3X2_F
transform
;
enum
d2d_brush_type
type
;
union
...
...
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