From 8a711eadaced8306490271c1b13c51007fe9fa67 Mon Sep 17 00:00:00 2001 From: donkopunchstania Date: Fri, 31 Dec 2010 06:45:18 +0000 Subject: Video software: Changed the EFB color order from RGBA to ABGR to emulate it correctly on little-endian platforms. Added some enumerations to clear up what components are which colors. Fixed the TEV alpha input LUT which would have caused problems if anything was doing alpha comparisons. Changed box filter for EFB copies from 3x3 to 2x2 because that is probably correct. Also makes the math nicer. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6696 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoSoftware/Src/DebugUtil.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/DebugUtil.cpp') diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/DebugUtil.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/DebugUtil.cpp index a4313968c6..c35fc91e2f 100644 --- a/Source/Plugins/Plugin_VideoSoftware/Src/DebugUtil.cpp +++ b/Source/Plugins/Plugin_VideoSoftware/Src/DebugUtil.cpp @@ -143,11 +143,11 @@ void DumpEfb(const char* filename) for (int y = 0; y < EFB_HEIGHT; y++) for (int x = 0; x < EFB_WIDTH; x++) { EfbInterface::GetColor(x, y, sample); - // rgba to bgra - *(writePtr++) = sample[2]; + // ABGR to BGRA *(writePtr++) = sample[1]; - *(writePtr++) = sample[0]; + *(writePtr++) = sample[2]; *(writePtr++) = sample[3]; + *(writePtr++) = sample[0]; } (void)SaveTGA(filename, EFB_WIDTH, EFB_HEIGHT, data); -- cgit v1.2.3