Get rid of a few C-style struct declarations

This commit is contained in:
Lioncash
2014-07-23 20:26:54 -04:00
parent e91db62f1b
commit 5767691f4e
8 changed files with 23 additions and 21 deletions

View File

@ -419,10 +419,10 @@ int CD3DFont::DrawTextScaled(float x, float y, float size, float spacing, u32 dw
ID3D11SamplerState* linear_copy_sampler = nullptr;
ID3D11SamplerState* point_copy_sampler = nullptr;
typedef struct { float x,y,z,u,v,w; } STQVertex;
typedef struct { float x,y,z,u,v,w; } STSQVertex;
typedef struct { float x,y,z; u32 col; } ClearVertex;
typedef struct { float x,y,z; u32 col; } ColVertex;
struct STQVertex { float x, y, z, u, v, w; };
struct STSQVertex { float x, y, z, u, v, w; };
struct ClearVertex { float x, y, z; u32 col; };
struct ColVertex { float x, y, z; u32 col; };
struct
{

View File

@ -12,18 +12,20 @@ namespace EfbInterface
// xfb color format - packed so the compiler doesn't mess with alignment
#pragma pack(push,1)
typedef struct {
struct yuv422_packed
{
u8 Y;
u8 UV;
} yuv422_packed;
};
#pragma pack(pop)
// But this struct is only used internally, so we could optimise alignment
typedef struct {
struct yuv444
{
u8 Y;
s8 U;
s8 V;
} yuv444;
};
enum { ALP_C, BLU_C, GRN_C, RED_C };