summaryrefslogtreecommitdiff
path: root/src/palette.c
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2017-06-15 03:36:53 -0400
committerProjectRevoTPP <projectrevotpp@hotmail.com>2017-06-15 03:36:53 -0400
commit33bda740ea4342546d349235f90d2402c2a80088 (patch)
tree8552fae690a99b13421f0ecdc6824aa3e69d4438 /src/palette.c
parent8435b8835a9b5c5348b2849e943e36ffdd8c76b3 (diff)
parent6f4bf2cb0535b1a7dc72029c65d93e3ebdb19f95 (diff)
field_effect.c merge
Diffstat (limited to 'src/palette.c')
-rw-r--r--src/palette.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/palette.c b/src/palette.c
index 165eb2eae..a610049bc 100644
--- a/src/palette.c
+++ b/src/palette.c
@@ -615,7 +615,7 @@ static u8 UpdateFastPaletteFade(void)
if (b < b0)
b = b0;
- gPlttBufferFaded[i] = r | (g << 5) | (b << 10);
+ gPlttBufferFaded[i] = RGB(r, g, b);
}
break;
case FAST_FADE_OUT_TO_WHTIE:
@@ -633,7 +633,7 @@ static u8 UpdateFastPaletteFade(void)
if (b > 31)
b = 31;
- gPlttBufferFaded[i] = r | (g << 5) | (b << 10);
+ gPlttBufferFaded[i] = RGB(r, g, b);
}
break;
case FAST_FADE_IN_FROM_BLACK:
@@ -659,7 +659,7 @@ static u8 UpdateFastPaletteFade(void)
if (b > b0)
b = b0;
- gPlttBufferFaded[i] = r | (g << 5) | (b << 10);
+ gPlttBufferFaded[i] = RGB(r, g, b);
}
break;
case FAST_FADE_OUT_TO_BLACK:
@@ -677,7 +677,7 @@ static u8 UpdateFastPaletteFade(void)
if (b < 0)
b = 0;
- gPlttBufferFaded[i] = r | (g << 5) | (b << 10);
+ gPlttBufferFaded[i] = RGB(r, g, b);
}
}