aboutsummaryrefslogtreecommitdiff
path: root/graphics/video/mpeg_player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/video/mpeg_player.cpp')
-rw-r--r--graphics/video/mpeg_player.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/video/mpeg_player.cpp b/graphics/video/mpeg_player.cpp
index 964f4cd94d..8c017e5bb5 100644
--- a/graphics/video/mpeg_player.cpp
+++ b/graphics/video/mpeg_player.cpp
@@ -391,9 +391,9 @@ void BaseAnimationState::buildLookup() {
// Set up entries 0-255 in rgb-to-pixel value tables.
Graphics::PixelFormat format = _sys->getOverlayFormat();
for (i = 0; i < 256; i++) {
- r_2_pix_alloc[i + 256] = Graphics::RGBToColor(i, 0, 0, format);
- g_2_pix_alloc[i + 256] = Graphics::RGBToColor(0, i, 0, format);
- b_2_pix_alloc[i + 256] = Graphics::RGBToColor(0, 0, i, format);
+ r_2_pix_alloc[i + 256] = format.RGBToColor(i, 0, 0);
+ g_2_pix_alloc[i + 256] = format.RGBToColor(0, i, 0);
+ b_2_pix_alloc[i + 256] = format.RGBToColor(0, 0, i);
}
// Spread out the values we have to the rest of the array so that we do