aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx/gfx_pixmap_scale.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2009-06-26 22:30:52 +0000
committerWillem Jan Palenstijn2009-06-26 22:30:52 +0000
commit70c9731810b28e910270429b2e5d16e2fe92f604 (patch)
tree66a6e81babf934f43c1d7be17ee8d6c3a9a3e655 /engines/sci/gfx/gfx_pixmap_scale.cpp
parent27e50db5d7cdbed498d6a61b1ee1ad5405ce33a2 (diff)
downloadscummvm-rg350-70c9731810b28e910270429b2e5d16e2fe92f604.tar.gz
scummvm-rg350-70c9731810b28e910270429b2e5d16e2fe92f604.tar.bz2
scummvm-rg350-70c9731810b28e910270429b2e5d16e2fe92f604.zip
SCI: starting to restore RGB color functionality
svn-id: r41904
Diffstat (limited to 'engines/sci/gfx/gfx_pixmap_scale.cpp')
-rw-r--r--engines/sci/gfx/gfx_pixmap_scale.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/sci/gfx/gfx_pixmap_scale.cpp b/engines/sci/gfx/gfx_pixmap_scale.cpp
index 52c7b12396..37843743b9 100644
--- a/engines/sci/gfx/gfx_pixmap_scale.cpp
+++ b/engines/sci/gfx/gfx_pixmap_scale.cpp
@@ -70,14 +70,11 @@ void _gfx_xlate_pixmap_unfiltered(gfx_mode_t *mode, gfx_pixmap_t *pxm, int scale
// Calculate all colors
for (i = 0; i < pxm->colors_nr(); i++) {
int col;
-
const PaletteEntry& color = pxm->palette->getColor(i);
if (mode->palette)
col = color.parent_index;
else {
- col = mode->red_mask & ((EXTEND_COLOR(color.r)) >> mode->red_shift);
- col |= mode->green_mask & ((EXTEND_COLOR(color.g)) >> mode->green_shift);
- col |= mode->blue_mask & ((EXTEND_COLOR(color.b)) >> mode->blue_shift);
+ col = mode->format.ARGBToColor(0, color.r, color.g, color.b);
col |= alpha_ormask;
}
result_colors[i] = col;