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 /engines/sword1 | |
| 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 'engines/sword1')
| -rw-r--r-- | engines/sword1/animation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword1/animation.cpp b/engines/sword1/animation.cpp index e08aeb6fa3..8219dbce12 100644 --- a/engines/sword1/animation.cpp +++ b/engines/sword1/animation.cpp @@ -544,7 +544,7 @@ bool MoviePlayerMPEG::initOverlays(uint32 id) { _introPal = (OverlayColor *)malloc(256 * sizeof(OverlayColor)); Graphics::PixelFormat format = _system->getOverlayFormat(); for (uint16 cnt = 0; cnt < 256; cnt++) - _introPal[cnt] = Graphics::RGBToColor(pal[cnt * 3 + 0], pal[cnt * 3 + 1], pal[cnt * 3 + 2], format); + _introPal[cnt] = format.RGBToColor(pal[cnt * 3 + 0], pal[cnt * 3 + 1], pal[cnt * 3 + 2]); } return true; |
