aboutsummaryrefslogtreecommitdiff
path: root/graphics/video/mpeg_player.cpp
diff options
context:
space:
mode:
authorMax Horn2009-01-22 04:35:10 +0000
committerMax Horn2009-01-22 04:35:10 +0000
commitabc06ca18e69c336d701707933b4dc490dd86e94 (patch)
treea6dc57ffd954e3e85f7be813fe25d8341180c2ea /graphics/video/mpeg_player.cpp
parenta2c671da977acda9f9503413fb38490dcceda76d (diff)
downloadscummvm-rg350-abc06ca18e69c336d701707933b4dc490dd86e94.tar.gz
scummvm-rg350-abc06ca18e69c336d701707933b4dc490dd86e94.tar.bz2
scummvm-rg350-abc06ca18e69c336d701707933b4dc490dd86e94.zip
Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. into methods, and added an operator==
svn-id: r35993
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