diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-07-23 20:26:54 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-07-23 20:36:45 -0400 |
| commit | 5767691f4e9260b25f440ef42bb9853aeba89b56 (patch) | |
| tree | 906c95d329bca643f3f35097eaa0692b1084c653 /Source/Core/VideoBackends | |
| parent | e91db62f1be2eeeb3fb3d5f71cfafcfcb98e13a5 (diff) | |
Get rid of a few C-style struct declarations
Diffstat (limited to 'Source/Core/VideoBackends')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/D3DUtil.cpp | 8 | ||||
| -rw-r--r-- | Source/Core/VideoBackends/Software/EfbInterface.h | 10 |
2 files changed, 10 insertions, 8 deletions
diff --git a/Source/Core/VideoBackends/D3D/D3DUtil.cpp b/Source/Core/VideoBackends/D3D/D3DUtil.cpp index cf31b8a757..f8d91df952 100644 --- a/Source/Core/VideoBackends/D3D/D3DUtil.cpp +++ b/Source/Core/VideoBackends/D3D/D3DUtil.cpp @@ -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 { diff --git a/Source/Core/VideoBackends/Software/EfbInterface.h b/Source/Core/VideoBackends/Software/EfbInterface.h index c264713715..d09f71333c 100644 --- a/Source/Core/VideoBackends/Software/EfbInterface.h +++ b/Source/Core/VideoBackends/Software/EfbInterface.h @@ -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 }; |
