Module: wine Branch: master Commit: 808e92678398a0b56f2054a27e5e2676194c8aea URL: http://source.winehq.org/git/wine.git/?a=commit;h=808e92678398a0b56f2054a27e...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Jan 3 23:06:54 2012 +0100
wined3d: Get rid of the WINED3DCULL typedef.
---
dlls/wined3d/state.c | 8 ++++---- dlls/wined3d/stateblock.c | 2 +- include/wine/wined3d.h | 11 +++++------ 3 files changed, 10 insertions(+), 11 deletions(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index a392f1f..c10997c 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -129,24 +129,24 @@ static void state_cullmode(struct wined3d_context *context, const struct wined3d * offscreen / onscreen rendering switch. */ switch (state->render_states[WINED3D_RS_CULLMODE]) { - case WINED3DCULL_NONE: + case WINED3D_CULL_NONE: glDisable(GL_CULL_FACE); checkGLcall("glDisable GL_CULL_FACE"); break; - case WINED3DCULL_CW: + case WINED3D_CULL_CW: glEnable(GL_CULL_FACE); checkGLcall("glEnable GL_CULL_FACE"); glCullFace(GL_FRONT); checkGLcall("glCullFace(GL_FRONT)"); break; - case WINED3DCULL_CCW: + case WINED3D_CULL_CCW: glEnable(GL_CULL_FACE); checkGLcall("glEnable GL_CULL_FACE"); glCullFace(GL_BACK); checkGLcall("glCullFace(GL_BACK)"); break; default: - FIXME("Unrecognized/Unhandled WINED3DCULL value %#x.\n", + FIXME("Unrecognized cull mode %#x.\n", state->render_states[WINED3D_RS_CULLMODE]); } } diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index feabe3d..8da32c2 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -1133,7 +1133,7 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock) state->render_states[WINED3D_RS_LASTPIXEL] = TRUE; state->render_states[WINED3D_RS_SRCBLEND] = WINED3D_BLEND_ONE; state->render_states[WINED3D_RS_DESTBLEND] = WINED3D_BLEND_ZERO; - state->render_states[WINED3D_RS_CULLMODE] = WINED3DCULL_CCW; + state->render_states[WINED3D_RS_CULLMODE] = WINED3D_CULL_CCW; state->render_states[WINED3D_RS_ZFUNC] = WINED3D_CMP_LESSEQUAL; state->render_states[WINED3D_RS_ALPHAFUNC] = WINED3D_CMP_ALWAYS; state->render_states[WINED3D_RS_ALPHAREF] = 0; diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h index 312b63c..6c06fc6 100644 --- a/include/wine/wined3d.h +++ b/include/wine/wined3d.h @@ -462,13 +462,12 @@ enum wined3d_fill_mode WINED3D_FILL_SOLID = 3, };
-typedef enum _WINED3DCULL +enum wined3d_cull { - WINED3DCULL_NONE = 1, - WINED3DCULL_CW = 2, - WINED3DCULL_CCW = 3, - WINED3DCULL_FORCE_DWORD = 0x7fffffff -} WINED3DCULL; + WINED3D_CULL_NONE = 1, + WINED3D_CULL_CW = 2, + WINED3D_CULL_CCW = 3, +};
typedef enum _WINED3DSTENCILOP {