diff options
author | Johannes Schickel | 2008-11-03 13:44:59 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-11-03 13:44:59 +0000 |
commit | 985c02ee7da43fb66b61d6e3c5530e78bd2d8286 (patch) | |
tree | 44bc31e701a7b020486ab407560d6d9c0e0329b2 /graphics/scaler/thumbnail_intern.cpp | |
parent | d0c9b0cb233a00094f18269d94b7d0fb64433099 (diff) | |
download | scummvm-rg350-985c02ee7da43fb66b61d6e3c5530e78bd2d8286.tar.gz scummvm-rg350-985c02ee7da43fb66b61d6e3c5530e78bd2d8286.tar.bz2 scummvm-rg350-985c02ee7da43fb66b61d6e3c5530e78bd2d8286.zip |
Committed my patch #2216641 "GRAPHICS: PixelFormat introduction".
svn-id: r34875
Diffstat (limited to 'graphics/scaler/thumbnail_intern.cpp')
-rw-r--r-- | graphics/scaler/thumbnail_intern.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/scaler/thumbnail_intern.cpp b/graphics/scaler/thumbnail_intern.cpp index bdfa0ff5f6..52547f47f1 100644 --- a/graphics/scaler/thumbnail_intern.cpp +++ b/graphics/scaler/thumbnail_intern.cpp @@ -118,7 +118,7 @@ static bool grabScreen565(Graphics::Surface *surf) { g = palette[((uint8*)screen->pixels)[y * screen->pitch + x] * 4 + 1]; b = palette[((uint8*)screen->pixels)[y * screen->pitch + x] * 4 + 2]; - ((uint16*)surf->pixels)[y * surf->w + x] = RGBToColor<ColorMasks<565> >(r, g, b); + ((uint16*)surf->pixels)[y * surf->w + x] = Graphics::RGBToColor<Graphics::ColorMasks<565> >(r, g, b); } } @@ -209,7 +209,7 @@ bool createThumbnail(Graphics::Surface *surf, const uint8 *pixels, int w, int h, g = palette[pixels[y * w + x] * 3 + 1]; b = palette[pixels[y * w + x] * 3 + 2]; - ((uint16 *)screen.pixels)[y * screen.w + x] = RGBToColor<ColorMasks<565> >(r, g, b); + ((uint16 *)screen.pixels)[y * screen.w + x] = Graphics::RGBToColor<Graphics::ColorMasks<565> >(r, g, b); } } |