diff options
author | Max Horn | 2009-01-22 04:35:10 +0000 |
---|---|---|
committer | Max Horn | 2009-01-22 04:35:10 +0000 |
commit | abc06ca18e69c336d701707933b4dc490dd86e94 (patch) | |
tree | a6dc57ffd954e3e85f7be813fe25d8341180c2ea /graphics/video/mpeg_player.cpp | |
parent | a2c671da977acda9f9503413fb38490dcceda76d (diff) | |
download | scummvm-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.cpp | 6 |
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 |