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
5bddd442
Commit
5bddd442
authored
Dec 19, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the WINED3DDEGREETYPE typedef.
parent
5c3ba123
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
21 deletions
+22
-21
drawprim.c
dlls/wined3d/drawprim.c
+1
-1
state.c
dlls/wined3d/state.c
+2
-2
stateblock.c
dlls/wined3d/stateblock.c
+2
-2
utils.c
dlls/wined3d/utils.c
+8
-6
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
wined3d.h
include/wine/wined3d.h
+8
-9
No files found.
dlls/wined3d/drawprim.c
View file @
5bddd442
...
...
@@ -837,7 +837,7 @@ HRESULT tesselate_rectpatch(struct wined3d_device *This, struct WineD3DRectPatch
}
if
(
info
->
basis
!=
WINED3DBASIS_BEZIER
)
FIXME
(
"Basis is %s, how to handle this?
\n
"
,
debug_d3dbasis
(
info
->
basis
));
if
(
info
->
degree
!=
WINED3DDEGREE_CUBIC
)
if
(
info
->
degree
!=
WINED3D
_
DEGREE_CUBIC
)
FIXME
(
"Degree is %s, how to handle this?
\n
"
,
debug_d3ddegree
(
info
->
degree
));
/* First, get the boundary cube of the input data */
...
...
dlls/wined3d/state.c
View file @
5bddd442
...
...
@@ -1798,14 +1798,14 @@ static void state_patchsegments(struct wined3d_context *context, const struct wi
static
void
state_positiondegree
(
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
,
DWORD
state_id
)
{
if
(
state
->
render_states
[
WINED3DRS_POSITIONDEGREE
]
!=
WINED3DDEGREE_CUBIC
)
if
(
state
->
render_states
[
WINED3DRS_POSITIONDEGREE
]
!=
WINED3D
_
DEGREE_CUBIC
)
FIXME
(
"WINED3DRS_POSITIONDEGREE %#x not yet implemented.
\n
"
,
state
->
render_states
[
WINED3DRS_POSITIONDEGREE
]);
}
static
void
state_normaldegree
(
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
,
DWORD
state_id
)
{
if
(
state
->
render_states
[
WINED3DRS_NORMALDEGREE
]
!=
WINED3DDEGREE_LINEAR
)
if
(
state
->
render_states
[
WINED3DRS_NORMALDEGREE
]
!=
WINED3D
_
DEGREE_LINEAR
)
FIXME
(
"WINED3DRS_NORMALDEGREE %#x not yet implemented.
\n
"
,
state
->
render_states
[
WINED3DRS_NORMALDEGREE
]);
}
...
...
dlls/wined3d/stateblock.c
View file @
5bddd442
...
...
@@ -1208,8 +1208,8 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock)
tmpfloat
.
f
=
0
.
0
f
;
state
->
render_states
[
WINED3DRS_TWEENFACTOR
]
=
tmpfloat
.
d
;
state
->
render_states
[
WINED3DRS_BLENDOP
]
=
WINED3D_BLEND_OP_ADD
;
state
->
render_states
[
WINED3DRS_POSITIONDEGREE
]
=
WINED3DDEGREE_CUBIC
;
state
->
render_states
[
WINED3DRS_NORMALDEGREE
]
=
WINED3DDEGREE_LINEAR
;
state
->
render_states
[
WINED3DRS_POSITIONDEGREE
]
=
WINED3D
_
DEGREE_CUBIC
;
state
->
render_states
[
WINED3DRS_NORMALDEGREE
]
=
WINED3D
_
DEGREE_LINEAR
;
/* states new in d3d9 */
state
->
render_states
[
WINED3DRS_SCISSORTESTENABLE
]
=
FALSE
;
state
->
render_states
[
WINED3DRS_SLOPESCALEDEPTHBIAS
]
=
0
;
...
...
dlls/wined3d/utils.c
View file @
5bddd442
...
...
@@ -2402,12 +2402,14 @@ const char *debug_d3dbasis(WINED3DBASISTYPE basis) {
}
}
const
char
*
debug_d3ddegree
(
WINED3DDEGREETYPE
degree
)
{
switch
(
degree
)
{
case
WINED3DDEGREE_LINEAR
:
return
"WINED3DDEGREE_LINEAR"
;
case
WINED3DDEGREE_QUADRATIC
:
return
"WINED3DDEGREE_QUADRATIC"
;
case
WINED3DDEGREE_CUBIC
:
return
"WINED3DDEGREE_CUBIC"
;
case
WINED3DDEGREE_QUINTIC
:
return
"WINED3DDEGREE_QUINTIC"
;
const
char
*
debug_d3ddegree
(
enum
wined3d_degree_type
degree
)
{
switch
(
degree
)
{
case
WINED3D_DEGREE_LINEAR
:
return
"WINED3D_DEGREE_LINEAR"
;
case
WINED3D_DEGREE_QUADRATIC
:
return
"WINED3D_DEGREE_QUADRATIC"
;
case
WINED3D_DEGREE_CUBIC
:
return
"WINED3D_DEGREE_CUBIC"
;
case
WINED3D_DEGREE_QUINTIC
:
return
"WINED3D_DEGREE_QUINTIC"
;
default:
return
"unrecognized"
;
}
}
...
...
dlls/wined3d/wined3d_private.h
View file @
5bddd442
...
...
@@ -2485,7 +2485,7 @@ const char *debug_d3dpool(WINED3DPOOL pool) DECLSPEC_HIDDEN;
const
char
*
debug_fbostatus
(
GLenum
status
)
DECLSPEC_HIDDEN
;
const
char
*
debug_glerror
(
GLenum
error
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3dbasis
(
WINED3DBASISTYPE
basis
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3ddegree
(
WINED3DDEGREETYPE
order
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3ddegree
(
enum
wined3d_degree_type
order
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3dtop
(
WINED3DTEXTUREOP
d3dtop
)
DECLSPEC_HIDDEN
;
void
dump_color_fixup_desc
(
struct
color_fixup_desc
fixup
)
DECLSPEC_HIDDEN
;
const
char
*
debug_surflocation
(
DWORD
flag
)
DECLSPEC_HIDDEN
;
...
...
include/wine/wined3d.h
View file @
5bddd442
...
...
@@ -97,14 +97,13 @@ enum wined3d_device_type
WINED3D_DEVICE_TYPE_NULLREF
=
4
,
};
typedef
enum
_WINED3DDEGREETYPE
enum
wined3d_degree_type
{
WINED3DDEGREE_LINEAR
=
1
,
WINED3DDEGREE_QUADRATIC
=
2
,
WINED3DDEGREE_CUBIC
=
3
,
WINED3DDEGREE_QUINTIC
=
5
,
WINED3DDEGREE_FORCE_DWORD
=
0x7fffffff
}
WINED3DDEGREETYPE
;
WINED3D_DEGREE_LINEAR
=
1
,
WINED3D_DEGREE_QUADRATIC
=
2
,
WINED3D_DEGREE_CUBIC
=
3
,
WINED3D_DEGREE_QUINTIC
=
5
,
};
#define WINEMAKEFOURCC(ch0, ch1, ch2, ch3) \
((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
...
...
@@ -1603,7 +1602,7 @@ struct wined3d_rect_patch_info
UINT
height
;
UINT
stride
;
WINED3DBASISTYPE
basis
;
WINED3DDEGREETYPE
degree
;
enum
wined3d_degree_type
degree
;
};
struct
wined3d_tri_patch_info
...
...
@@ -1611,7 +1610,7 @@ struct wined3d_tri_patch_info
UINT
start_vertex_offset
;
UINT
vertex_count
;
WINED3DBASISTYPE
basis
;
WINED3DDEGREETYPE
degree
;
enum
wined3d_degree_type
degree
;
};
struct
wined3d_adapter_identifier
...
...
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