Commit d0e37372 authored by Pavel Ondračka's avatar Pavel Ondračka Committed by Alexandre Julliard

d3d9/tests: Define enums outside of struct.

parent c38df594
...@@ -1667,16 +1667,17 @@ static void color_fill_test(void) ...@@ -1667,16 +1667,17 @@ static void color_fill_test(void)
{D3DPOOL_MANAGED, 0, D3DERR_INVALIDCALL}, {D3DPOOL_MANAGED, 0, D3DERR_INVALIDCALL},
{D3DPOOL_SCRATCH, 0, D3DERR_INVALIDCALL}, {D3DPOOL_SCRATCH, 0, D3DERR_INVALIDCALL},
}; };
enum format_flags
{
CHECK_FILL_VALUE = 0x1,
BLOCKS = 0x2,
FLOAT_VALUES = 0x4,
};
static const struct static const struct
{ {
D3DFORMAT format; D3DFORMAT format;
const char *name; const char *name;
enum enum format_flags flags;
{
CHECK_FILL_VALUE = 0x1,
BLOCKS = 0x2,
FLOAT_VALUES = 0x4,
} flags;
unsigned int fill_i[4]; unsigned int fill_i[4];
float fill_f[4]; float fill_f[4];
} }
...@@ -23249,16 +23250,17 @@ static void test_texture_blending(void) ...@@ -23249,16 +23250,17 @@ static void test_texture_blending(void)
DWORD value; DWORD value;
}; };
enum texture_stage_texture
{
TEXTURE_INVALID,
TEXTURE_NONE,
TEXTURE_BUMPMAP,
TEXTURE_RED,
};
struct texture_stage struct texture_stage
{ {
enum enum texture_stage_texture texture;
{
TEXTURE_INVALID,
TEXTURE_NONE,
TEXTURE_BUMPMAP,
TEXTURE_RED,
}
texture;
struct texture_stage_state state[20]; struct texture_stage_state state[20];
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment