rosalina: use correct srgb filter order

This commit is contained in:
TuxSH 2024-08-04 23:14:29 +02:00
parent 2c49a04516
commit 85c1997f2b

View File

@ -101,7 +101,7 @@ static void ScreenFilterMenu_WritePolynomialColorLut(bool top, u8 curveCorrectio
for (int i = 0; i <= 255; i++) { for (int i = 0; i <= 255; i++) {
Pixel px; Pixel px;
int inLevel = invert ? 255 - i : i; int inLevel = invert ? 255 - i : i;
const u8 (*tbl)[3] = curveCorrection == 2 ? ctrToSrgbTableTop : ctrToSrgbTableBottom; const u8 (*tbl)[3] = curveCorrection == 2 ? ctrToSrgbTableBottom : ctrToSrgbTableTop;
u8 inLevelR = curveCorrection > 0 ? tbl[inLevel][0] : inLevel; u8 inLevelR = curveCorrection > 0 ? tbl[inLevel][0] : inLevel;
u8 inLevelG = curveCorrection > 0 ? tbl[inLevel][1] : inLevel; u8 inLevelG = curveCorrection > 0 ? tbl[inLevel][1] : inLevel;