aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
diff options
context:
space:
mode:
authorMax Horn2009-01-22 04:35:10 +0000
committerMax Horn2009-01-22 04:35:10 +0000
commitabc06ca18e69c336d701707933b4dc490dd86e94 (patch)
treea6dc57ffd954e3e85f7be813fe25d8341180c2ea /engines/sword1
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 'engines/sword1')
-rw-r--r--engines/sword1/animation.cpp2
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;