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
48020f48
Commit
48020f48
authored
May 15, 2020
by
Biswapriyo Nath
Committed by
Alexandre Julliard
Jun 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add missing structures in dcommon.idl.
Signed-off-by:
Biswapriyo Nath
<
nathbappai@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9c954340
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
128 additions
and
51 deletions
+128
-51
brush.c
dlls/d2d1/brush.c
+2
-2
device.c
dlls/d2d1/device.c
+2
-2
geometry.c
dlls/d2d1/geometry.c
+2
-2
state_block.c
dlls/d2d1/state_block.c
+2
-2
d2d1.c
dlls/d2d1/tests/d2d1.c
+32
-32
d2dbasetypes.h
include/d2dbasetypes.h
+0
-10
dcommon.idl
include/dcommon.idl
+88
-1
No files found.
dlls/d2d1/brush.c
View file @
48020f48
...
...
@@ -237,11 +237,11 @@ static void d2d_brush_init(struct d2d_brush *brush, ID2D1Factory *factory,
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
;
...
...
dlls/d2d1/device.c
View file @
48020f48
...
...
@@ -23,11 +23,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(d2d);
#define INITIAL_CLIP_STACK_SIZE 4
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_draw_text_layout_ctx
{
...
...
dlls/d2d1/geometry.c
View file @
48020f48
...
...
@@ -30,11 +30,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(d2d);
#define D2D_FP_EPS (1.0f / (1 << FLT_MANT_DIG))
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
,
};
}
}}
;
enum
d2d_cdt_edge_next
{
...
...
dlls/d2d1/state_block.c
View file @
48020f48
...
...
@@ -165,11 +165,11 @@ void d2d_state_block_init(struct d2d_state_block *state_block, ID2D1Factory *fac
const
D2D1_DRAWING_STATE_DESCRIPTION1
*
desc
,
IDWriteRenderingParams
*
text_rendering_params
)
{
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
,
};
}
}}
;
state_block
->
ID2D1DrawingStateBlock1_iface
.
lpVtbl
=
&
d2d_state_block_vtbl
;
state_block
->
refcount
=
1
;
...
...
dlls/d2d1/tests/d2d1.c
View file @
48020f48
...
...
@@ -1096,11 +1096,11 @@ static void test_clip(void)
HRESULT
hr
;
BOOL
match
;
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
,
};
}
}}
;
if
(
!
(
device
=
create_device
()))
{
...
...
@@ -1302,23 +1302,23 @@ static void test_state_block(void)
HWND
window
;
HRESULT
hr
;
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
,
};
}
}}
;
static
const
D2D1_MATRIX_3X2_F
transform1
=
{
{
{{
1
.
0
f
,
2
.
0
f
,
3
.
0
f
,
4
.
0
f
,
5
.
0
f
,
6
.
0
f
,
};
}
}}
;
static
const
D2D1_MATRIX_3X2_F
transform2
=
{
{
{{
7
.
0
f
,
8
.
0
f
,
9
.
0
f
,
10
.
0
f
,
11
.
0
f
,
12
.
0
f
,
};
}
}}
;
if
(
!
(
device
=
create_device
()))
{
...
...
@@ -8613,57 +8613,57 @@ static void test_invert_matrix(void)
}
invert_tests
[]
=
{
{
{
0
},
{
0
},
FALSE
},
{
{
{{
0
}}},
{{{
0
}}
},
FALSE
},
{
{
{
{{
1
.
0
f
,
2
.
0
f
,
1
.
0
f
,
2
.
0
f
,
4
.
0
f
,
8
.
0
f
},
{
}
}}
,
{
{{
1
.
0
f
,
2
.
0
f
,
1
.
0
f
,
2
.
0
f
,
4
.
0
f
,
8
.
0
f
},
}
}}
,
FALSE
},
{
{
{
{{
2
.
0
f
,
0
.
0
f
,
0
.
0
f
,
2
.
0
f
,
4
.
0
f
,
8
.
0
f
},
{
}
}}
,
{
{{
0
.
5
f
,
-
0
.
0
f
,
-
0
.
0
f
,
0
.
5
f
,
-
2
.
0
f
,
-
4
.
0
f
},
}
}}
,
TRUE
},
{
{
{
{{
2
.
0
f
,
1
.
0
f
,
2
.
0
f
,
2
.
0
f
,
4
.
0
f
,
8
.
0
f
},
{
}
}}
,
{
{{
1
.
0
f
,
-
0
.
5
f
,
-
1
.
0
f
,
1
.
0
f
,
4
.
0
f
,
-
6
.
0
f
},
}
}}
,
TRUE
},
{
{
{
{{
2
.
0
f
,
1
.
0
f
,
3
.
0
f
,
1
.
0
f
,
4
.
0
f
,
8
.
0
f
},
{
}
}}
,
{
{{
-
1
.
0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}
}
},
{
45
.
0
f
,
0
.
0
f
,
{
0
.
0
f
,
0
.
0
f
},
{
{{
1
.
0
f
,
0
.
0
f
,
1
.
0
f
,
1
.
0
f
,
0
.
0
f
,
0
.
0
f
}}
}
},
{
0
.
0
f
,
0
.
0
f
,
{
10
.
0
f
,
-
3
.
0
f
},
{
{{
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
,
0
.
0
f
,
0
.
0
f
}}
}
},
{
-
45
.
0
f
,
45
.
0
f
,
{
0
.
1
f
,
0
.
5
f
},
{
{{
1
.
0
f
,
1
.
0
f
,
-
1
.
0
f
,
1
.
0
f
,
0
.
5
f
,
-
0
.
1
f
}}
}
},
{
-
45
.
0
f
,
45
.
0
f
,
{
1
.
0
f
,
2
.
0
f
},
{
{{
1
.
0
f
,
1
.
0
f
,
-
1
.
0
f
,
1
.
0
f
,
2
.
0
f
,
-
1
.
0
f
}}
}
},
{
45
.
0
f
,
-
45
.
0
f
,
{
1
.
0
f
,
2
.
0
f
},
{
{{
1
.
0
f
,
-
1
.
0
f
,
1
.
0
f
,
1
.
0
f
,
-
2
.
0
f
,
1
.
0
f
}}
}
},
{
30
.
0
f
,
-
60
.
0
f
,
{
12
.
0
f
,
-
5
.
0
f
},
{
{{
1
.
0
f
,
-
1
.
7320509
f
,
0
.
577350259
f
,
1
.
0
f
,
2
.
88675117
f
,
20
.
7846107
f
}}
}
},
};
unsigned
int
i
;
...
...
include/d2dbasetypes.h
View file @
48020f48
...
...
@@ -29,16 +29,6 @@ typedef struct D3DCOLORVALUE
typedef
D3DCOLORVALUE
D2D_COLOR_F
;
typedef
struct
D2D_MATRIX_3X2_F
{
float
_11
;
float
_12
;
float
_21
;
float
_22
;
float
_31
;
float
_32
;
}
D2D_MATRIX_3X2_F
;
typedef
struct
D2D_RECT_F
{
float
left
;
...
...
include/dcommon.idl
View file @
48020f48
...
...
@@ -23,6 +23,12 @@ typedef struct
{
long
x
,
y
;
}
POINT
;
typedef
struct
{
long
left
,
top
,
right
,
bottom
;
}
RECT
;
typedef
unsigned
int
UINT32
;
cpp_quote
(
"#endif"
)
...
...
@@ -52,7 +58,7 @@ typedef enum D2D1_ALPHA_MODE
D2D1_ALPHA_MODE_PREMULTIPLIED
=
1
,
D2D1_ALPHA_MODE_STRAIGHT
=
2
,
D2D1_ALPHA_MODE_IGNORE
=
3
,
D2D1_ALPHA_MODE_FORCE_DWORD
=
0
xffffffff
,
D2D1_ALPHA_MODE_FORCE_DWORD
=
0
xffffffff
}
D2D1_ALPHA_MODE
;
typedef
struct
D2D1_PIXEL_FORMAT
...
...
@@ -69,12 +75,76 @@ typedef struct D2D_POINT_2F
typedef
POINT
D2D_POINT_2L
,
D2D1_POINT_2L
;
typedef
struct
D2D_VECTOR_2F
{
float
x
;
float
y
;
}
D2D_VECTOR_2F
;
typedef
struct
D2D_VECTOR_3F
{
float
x
;
float
y
;
float
z
;
}
D2D_VECTOR_3F
;
typedef
struct
D2D_VECTOR_4F
{
float
x
;
float
y
;
float
z
;
float
w
;
}
D2D_VECTOR_4F
;
typedef
RECT
D2D_RECT_L
,
D2D1_RECT_L
;
typedef
struct
D2D_SIZE_U
{
UINT32
width
;
UINT32
height
;
}
D2D_SIZE_U
,
D2D1_SIZE_U
;
typedef
struct
D2D_MATRIX_3X2_F
{
union
{
struct
{
float
m11
;
float
m12
;
float
m21
;
float
m22
;
float
dx
;
float
dy
;
}
;
struct
{
float
_11
,
_12
;
float
_21
,
_22
;
float
_31
,
_32
;
}
;
float
m
[
3
][
2
]
;
}
;
}
D2D_MATRIX_3X2_F
;
typedef
struct
D2D_MATRIX_4X3_F
{
union
{
struct
{
float
_11
,
_12
,
_13
;
float
_21
,
_22
,
_23
;
float
_31
,
_32
,
_33
;
float
_41
,
_42
,
_43
;
}
;
float
m
[
4
][
3
]
;
}
;
}
D2D_MATRIX_4X3_F
;
typedef
struct
D2D_MATRIX_4X4_F
{
union
...
...
@@ -90,3 +160,20 @@ typedef struct D2D_MATRIX_4X4_F
float
m
[
4
][
4
]
;
}
;
}
D2D_MATRIX_4X4_F
;
typedef
struct
D2D_MATRIX_5X4_F
{
union
{
struct
{
float
_11
,
_12
,
_13
,
_14
;
float
_21
,
_22
,
_23
,
_24
;
float
_31
,
_32
,
_33
,
_34
;
float
_41
,
_42
,
_43
,
_44
;
float
_51
,
_52
,
_53
,
_54
;
}
;
float
m
[
5
][
4
]
;
}
;
}
D2D_MATRIX_5X4_F
;
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