From ad5f5c24e6b526a11e2d209a12e9462371ac7fdc Mon Sep 17 00:00:00 2001 From: rogerman Date: Fri, 20 Jul 2018 18:45:44 -0700 Subject: [PATCH] Colorspace Handler: Fix bug where ColorspaceApplyIntensityToBuffer*() would not apply an R/B color swap when requested. --- desmume/src/utils/colorspacehandler/colorspacehandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/utils/colorspacehandler/colorspacehandler.cpp b/desmume/src/utils/colorspacehandler/colorspacehandler.cpp index 58c4512a9..980bfdf7c 100755 --- a/desmume/src/utils/colorspacehandler/colorspacehandler.cpp +++ b/desmume/src/utils/colorspacehandler/colorspacehandler.cpp @@ -678,7 +678,7 @@ void ColorspaceApplyIntensityToBuffer16(u16 *dst, size_t pixCount, float intensi { if (IS_UNALIGNED) { - i = csh.ApplyIntensityToBuffer16_IsUnaligned(dst, pixCountVector, intensity); + i = csh.ApplyIntensityToBuffer16_SwapRB_IsUnaligned(dst, pixCountVector, intensity); } else { @@ -763,7 +763,7 @@ void ColorspaceApplyIntensityToBuffer32(u32 *dst, size_t pixCount, float intensi { if (IS_UNALIGNED) { - i = csh.ApplyIntensityToBuffer32_IsUnaligned(dst, pixCountVector, intensity); + i = csh.ApplyIntensityToBuffer32_SwapRB_IsUnaligned(dst, pixCountVector, intensity); } else {