Fixed a few issues bought up in code review.

This commit is contained in:
Scott Mansell
2013-08-23 00:07:21 +12:00
parent 38de5bdd4a
commit 2abcc32bbd
3 changed files with 14 additions and 15 deletions

View File

@ -11,10 +11,7 @@ namespace EfbInterface
{
const int DEPTH_BUFFER_START = EFB_WIDTH * EFB_HEIGHT * 3;
// color order is ABGR in order to emulate RGBA on little-endian hardware
enum { ALP_C, BLU_C, GRN_C, RED_C };
// packed so the compiler doesn't mess with alignment
// xfb color format - packed so the compiler doesn't mess with alignment
#pragma pack(push,1)
typedef struct {
u8 Y;
@ -29,6 +26,10 @@ namespace EfbInterface
s8 V;
} yuv444;
enum { ALP_C, BLU_C, GRN_C, RED_C };
// color order is ABGR in order to emulate RGBA on little-endian hardware
// does full blending of an incoming pixel
void BlendTev(u16 x, u16 y, u8 *color);