Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
52d224b5
Commit
52d224b5
authored
Mar 22, 2016
by
Sebastian Lackner
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Avoid implicit cast of interface pointer.
parent
b4eb7f25
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
12 deletions
+12
-12
bitmap.c
dlls/d2d1/bitmap.c
+1
-1
brush.c
dlls/d2d1/brush.c
+4
-4
dc_render_target.c
dlls/d2d1/dc_render_target.c
+1
-1
geometry.c
dlls/d2d1/geometry.c
+4
-4
hwnd_render_target.c
dlls/d2d1/hwnd_render_target.c
+1
-1
state_block.c
dlls/d2d1/state_block.c
+1
-1
No files found.
dlls/d2d1/bitmap.c
View file @
52d224b5
...
...
@@ -762,5 +762,5 @@ struct d2d_bitmap *unsafe_impl_from_ID2D1Bitmap(ID2D1Bitmap *iface)
if
(
!
iface
)
return
NULL
;
assert
(
iface
->
lpVtbl
==
(
ID2D1BitmapVtbl
*
)
&
d2d_bitmap_vtbl
);
return
CONTAINING_RECORD
(
iface
,
struct
d2d_bitmap
,
ID2D1Bitmap1_iface
);
return
CONTAINING_RECORD
(
(
ID2D1Bitmap1
*
)
iface
,
struct
d2d_bitmap
,
ID2D1Bitmap1_iface
);
}
dlls/d2d1/brush.c
View file @
52d224b5
...
...
@@ -259,7 +259,7 @@ static void d2d_brush_init(struct d2d_brush *brush, ID2D1Factory *factory,
static
inline
struct
d2d_brush
*
impl_from_ID2D1SolidColorBrush
(
ID2D1SolidColorBrush
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d2d_brush
,
ID2D1Brush_iface
);
return
CONTAINING_RECORD
(
(
ID2D1Brush
*
)
iface
,
struct
d2d_brush
,
ID2D1Brush_iface
);
}
static
HRESULT
STDMETHODCALLTYPE
d2d_solid_color_brush_QueryInterface
(
ID2D1SolidColorBrush
*
iface
,
...
...
@@ -402,7 +402,7 @@ HRESULT d2d_solid_color_brush_create(ID2D1Factory *factory, const D2D1_COLOR_F *
static
inline
struct
d2d_brush
*
impl_from_ID2D1LinearGradientBrush
(
ID2D1LinearGradientBrush
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d2d_brush
,
ID2D1Brush_iface
);
return
CONTAINING_RECORD
(
(
ID2D1Brush
*
)
iface
,
struct
d2d_brush
,
ID2D1Brush_iface
);
}
static
HRESULT
STDMETHODCALLTYPE
d2d_linear_gradient_brush_QueryInterface
(
ID2D1LinearGradientBrush
*
iface
,
...
...
@@ -589,7 +589,7 @@ HRESULT d2d_linear_gradient_brush_create(ID2D1Factory *factory,
static
inline
struct
d2d_brush
*
impl_from_ID2D1RadialGradientBrush
(
ID2D1RadialGradientBrush
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d2d_brush
,
ID2D1Brush_iface
);
return
CONTAINING_RECORD
(
(
ID2D1Brush
*
)
iface
,
struct
d2d_brush
,
ID2D1Brush_iface
);
}
static
HRESULT
STDMETHODCALLTYPE
d2d_radial_gradient_brush_QueryInterface
(
ID2D1RadialGradientBrush
*
iface
,
...
...
@@ -821,7 +821,7 @@ HRESULT d2d_radial_gradient_brush_create(ID2D1Factory *factory,
static
inline
struct
d2d_brush
*
impl_from_ID2D1BitmapBrush1
(
ID2D1BitmapBrush1
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d2d_brush
,
ID2D1Brush_iface
);
return
CONTAINING_RECORD
(
(
ID2D1Brush
*
)
iface
,
struct
d2d_brush
,
ID2D1Brush_iface
);
}
static
HRESULT
STDMETHODCALLTYPE
d2d_bitmap_brush_QueryInterface
(
ID2D1BitmapBrush1
*
iface
,
...
...
dlls/d2d1/dc_render_target.c
View file @
52d224b5
...
...
@@ -23,7 +23,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d2d);
static
inline
struct
d2d_dc_render_target
*
impl_from_IUnknown
(
IUnknown
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d2d_dc_render_target
,
ID2D1DCRenderTarget_iface
);
return
CONTAINING_RECORD
(
(
ID2D1DCRenderTarget
*
)
iface
,
struct
d2d_dc_render_target
,
ID2D1DCRenderTarget_iface
);
}
static
HRESULT
d2d_dc_render_target_present
(
IUnknown
*
outer_unknown
)
...
...
dlls/d2d1/geometry.c
View file @
52d224b5
...
...
@@ -3356,7 +3356,7 @@ static const struct ID2D1GeometrySinkVtbl d2d_geometry_sink_vtbl =
static
inline
struct
d2d_geometry
*
impl_from_ID2D1PathGeometry1
(
ID2D1PathGeometry1
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d2d_geometry
,
ID2D1Geometry_iface
);
return
CONTAINING_RECORD
(
(
ID2D1Geometry
*
)
iface
,
struct
d2d_geometry
,
ID2D1Geometry_iface
);
}
static
HRESULT
STDMETHODCALLTYPE
d2d_path_geometry_QueryInterface
(
ID2D1PathGeometry1
*
iface
,
REFIID
iid
,
void
**
out
)
...
...
@@ -4229,7 +4229,7 @@ fail:
static
inline
struct
d2d_geometry
*
impl_from_ID2D1RectangleGeometry
(
ID2D1RectangleGeometry
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d2d_geometry
,
ID2D1Geometry_iface
);
return
CONTAINING_RECORD
(
(
ID2D1Geometry
*
)
iface
,
struct
d2d_geometry
,
ID2D1Geometry_iface
);
}
static
HRESULT
STDMETHODCALLTYPE
d2d_rectangle_geometry_QueryInterface
(
ID2D1RectangleGeometry
*
iface
,
...
...
@@ -4941,7 +4941,7 @@ fail:
static
inline
struct
d2d_geometry
*
impl_from_ID2D1TransformedGeometry
(
ID2D1TransformedGeometry
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d2d_geometry
,
ID2D1Geometry_iface
);
return
CONTAINING_RECORD
(
(
ID2D1Geometry
*
)
iface
,
struct
d2d_geometry
,
ID2D1Geometry_iface
);
}
static
HRESULT
STDMETHODCALLTYPE
d2d_transformed_geometry_QueryInterface
(
ID2D1TransformedGeometry
*
iface
,
...
...
@@ -5225,7 +5225,7 @@ void d2d_transformed_geometry_init(struct d2d_geometry *geometry, ID2D1Factory *
static
inline
struct
d2d_geometry
*
impl_from_ID2D1GeometryGroup
(
ID2D1GeometryGroup
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d2d_geometry
,
ID2D1Geometry_iface
);
return
CONTAINING_RECORD
(
(
ID2D1Geometry
*
)
iface
,
struct
d2d_geometry
,
ID2D1Geometry_iface
);
}
static
HRESULT
STDMETHODCALLTYPE
d2d_geometry_group_QueryInterface
(
ID2D1GeometryGroup
*
iface
,
...
...
dlls/d2d1/hwnd_render_target.c
View file @
52d224b5
...
...
@@ -23,7 +23,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d2d);
static
inline
struct
d2d_hwnd_render_target
*
impl_from_IUnknown
(
IUnknown
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d2d_hwnd_render_target
,
ID2D1HwndRenderTarget_iface
);
return
CONTAINING_RECORD
(
(
ID2D1HwndRenderTarget
*
)
iface
,
struct
d2d_hwnd_render_target
,
ID2D1HwndRenderTarget_iface
);
}
static
HRESULT
d2d_hwnd_render_target_present
(
IUnknown
*
outer_unknown
)
...
...
dlls/d2d1/state_block.c
View file @
52d224b5
...
...
@@ -187,5 +187,5 @@ struct d2d_state_block *unsafe_impl_from_ID2D1DrawingStateBlock(ID2D1DrawingStat
if
(
!
iface
)
return
NULL
;
assert
(
iface
->
lpVtbl
==
(
ID2D1DrawingStateBlockVtbl
*
)
&
d2d_state_block_vtbl
);
return
CONTAINING_RECORD
(
iface
,
struct
d2d_state_block
,
ID2D1DrawingStateBlock1_iface
);
return
CONTAINING_RECORD
(
(
ID2D1DrawingStateBlock1
*
)
iface
,
struct
d2d_state_block
,
ID2D1DrawingStateBlock1_iface
);
}
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