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/thumbnail.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/thumbnail.cpp')
-rw-r--r-- | graphics/thumbnail.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/thumbnail.cpp b/graphics/thumbnail.cpp index 1d88dc5147..de8c2eb2d9 100644 --- a/graphics/thumbnail.cpp +++ b/graphics/thumbnail.cpp @@ -24,6 +24,7 @@ #include "graphics/thumbnail.h" #include "graphics/scaler.h" +#include "graphics/colormasks.h" #include "common/endian.h" #include "common/system.h" @@ -115,7 +116,7 @@ bool loadThumbnail(Common::SeekableReadStream &in, Graphics::Surface &to) { colorToRGB<ColorMasks<565> >(in.readUint16BE(), r, g, b); // converting to current OSystem Color - *pixels++ = Graphics::RGBToColor(r, g, b, format); + *pixels++ = format.RGBToColor(r, g, b); } } |