mirror of
https://github.com/LumaTeam/Luma3DS.git
synced 2026-02-22 01:44:38 +00:00
rosalina: use correct srgb filter order
This commit is contained in:
parent
2c49a04516
commit
85c1997f2b
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user