diff options
| author | donkopunchstania <donkopunchstania@gmail.com> | 2010-12-31 06:45:18 +0000 |
|---|---|---|
| committer | donkopunchstania <donkopunchstania@gmail.com> | 2010-12-31 06:45:18 +0000 |
| commit | 8a711eadaced8306490271c1b13c51007fe9fa67 (patch) | |
| tree | ba6501ca7f8adf33fd6a23d56ea74ca80cddb396 /Source/Plugins/Plugin_VideoSoftware/Src/DebugUtil.cpp | |
| parent | bc3b43d1bd6114e2b426efcc2bdca46422f16f86 (diff) | |
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
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/DebugUtil.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoSoftware/Src/DebugUtil.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |
