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
391fda75
Commit
391fda75
authored
Jul 14, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Implement d2d_factory_CreateRectangleGeometry().
parent
35ec7abe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
5 deletions
+44
-5
d2d1_private.h
dlls/d2d1/d2d1_private.h
+26
-3
factory.c
dlls/d2d1/factory.c
+18
-2
geometry.c
dlls/d2d1/geometry.c
+0
-0
No files found.
dlls/d2d1/d2d1_private.h
View file @
391fda75
...
@@ -198,16 +198,39 @@ enum d2d_geometry_state
...
@@ -198,16 +198,39 @@ enum d2d_geometry_state
D2D_GEOMETRY_STATE_FIGURE
,
D2D_GEOMETRY_STATE_FIGURE
,
};
};
struct
d2d_face
{
UINT16
v
[
3
];
};
struct
d2d_geometry
struct
d2d_geometry
{
{
ID2D1Geometry
ID2D1Geometry_iface
;
ID2D1Geometry
ID2D1Geometry_iface
;
ID2D1GeometrySink
ID2D1GeometrySink_iface
;
LONG
refcount
;
LONG
refcount
;
enum
d2d_geometry_state
state
;
D2D1_POINT_2F
*
vertices
;
UINT32
figure_count
,
segment_count
;
size_t
vertex_count
;
struct
d2d_face
*
faces
;
size_t
face_count
;
union
{
struct
{
ID2D1GeometrySink
ID2D1GeometrySink_iface
;
enum
d2d_geometry_state
state
;
UINT32
figure_count
,
segment_count
;
}
path
;
struct
{
D2D1_RECT_F
rect
;
}
rectangle
;
}
u
;
};
};
void
d2d_path_geometry_init
(
struct
d2d_geometry
*
geometry
)
DECLSPEC_HIDDEN
;
void
d2d_path_geometry_init
(
struct
d2d_geometry
*
geometry
)
DECLSPEC_HIDDEN
;
HRESULT
d2d_rectangle_geometry_init
(
struct
d2d_geometry
*
geometry
,
const
D2D1_RECT_F
*
rect
)
DECLSPEC_HIDDEN
;
#endif
/* __WINE_D2D1_PRIVATE_H */
#endif
/* __WINE_D2D1_PRIVATE_H */
dlls/d2d1/factory.c
View file @
391fda75
...
@@ -94,9 +94,25 @@ static void STDMETHODCALLTYPE d2d_factory_GetDesktopDpi(ID2D1Factory *iface, flo
...
@@ -94,9 +94,25 @@ static void STDMETHODCALLTYPE d2d_factory_GetDesktopDpi(ID2D1Factory *iface, flo
static
HRESULT
STDMETHODCALLTYPE
d2d_factory_CreateRectangleGeometry
(
ID2D1Factory
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
d2d_factory_CreateRectangleGeometry
(
ID2D1Factory
*
iface
,
const
D2D1_RECT_F
*
rect
,
ID2D1RectangleGeometry
**
geometry
)
const
D2D1_RECT_F
*
rect
,
ID2D1RectangleGeometry
**
geometry
)
{
{
FIXME
(
"iface %p, rect %p, geometry %p stub!
\n
"
,
iface
,
rect
,
geometry
);
struct
d2d_geometry
*
object
;
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"iface %p, rect %p, geometry %p.
\n
"
,
iface
,
rect
,
geometry
);
if
(
!
(
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
))))
return
E_OUTOFMEMORY
;
if
(
FAILED
(
hr
=
d2d_rectangle_geometry_init
(
object
,
rect
)))
{
WARN
(
"Failed to initialize rectangle geometry, hr %#x.
\n
"
,
hr
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
return
hr
;
}
TRACE
(
"Created rectangle geometry %p.
\n
"
,
object
);
*
geometry
=
(
ID2D1RectangleGeometry
*
)
&
object
->
ID2D1Geometry_iface
;
return
S_OK
;
}
}
static
HRESULT
STDMETHODCALLTYPE
d2d_factory_CreateRoundedRectangleGeometry
(
ID2D1Factory
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
d2d_factory_CreateRoundedRectangleGeometry
(
ID2D1Factory
*
iface
,
...
...
dlls/d2d1/geometry.c
View file @
391fda75
This diff is collapsed.
Click to expand it.
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