aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-03 21:27:00 +0000
committerMartin Kiewitz2009-10-03 21:27:00 +0000
commitcfb7632a770d077adeed2494e7f6d23c65e9186d (patch)
tree2b96e3e3129aa387d86ed7e69eb8dcacd696d0f2 /engines/sci
parent204b975e7fdc4a68318b47b5561dd1328528dfdd (diff)
downloadscummvm-rg350-cfb7632a770d077adeed2494e7f6d23c65e9186d.tar.gz
scummvm-rg350-cfb7632a770d077adeed2494e7f6d23c65e9186d.tar.bz2
scummvm-rg350-cfb7632a770d077adeed2494e7f6d23c65e9186d.zip
SCI/newgui: Removed SciGUIpicture::drawPalette11
svn-id: r44571
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/gui/gui_picture.cpp32
-rw-r--r--engines/sci/gui/gui_picture.h1
2 files changed, 0 insertions, 33 deletions
diff --git a/engines/sci/gui/gui_picture.cpp b/engines/sci/gui/gui_picture.cpp
index 1f2218ad84..4e51e38653 100644
--- a/engines/sci/gui/gui_picture.cpp
+++ b/engines/sci/gui/gui_picture.cpp
@@ -99,7 +99,6 @@ void SciGUIpicture::draw11() {
// Create palette and set it
_gfx->CreatePaletteFromData(inbuffer + palette_data_ptr, &palette);
_gfx->SetPalette(&palette, 2);
-// drawPalette11(inbuffer + palette_data_ptr);
// display Cel-data
if (has_view) {
@@ -116,37 +115,6 @@ void SciGUIpicture::draw11() {
drawVectorData(inbuffer + vector_data_ptr, vector_size);
}
-void SciGUIpicture::drawPalette11(byte *data) {
- int start_color = data[25];
- int format = data[32];
- byte *pal_data = &data[37];
- int colors_nr = READ_LE_UINT16(data + 29);
- int i;
- sciPalette palette = {0};
-
- switch (format) {
- case SCI_PAL_FORMAT_VARIABLE_FLAGS:
- for (i = start_color; i < start_color + colors_nr; i ++) {
- palette.colors[i].used = pal_data[0];
- palette.colors[i].r = pal_data[1];
- palette.colors[i].g = pal_data[2];
- palette.colors[i].b = pal_data[3];
- pal_data += 4;
- }
- break;
- case SCI_PAL_FORMAT_CONSTANT_FLAGS:
- for (i = start_color; i < start_color + colors_nr; i ++) {
- palette.colors[i].used = 1;
- palette.colors[i].r = pal_data[0];
- palette.colors[i].g = pal_data[1];
- palette.colors[i].b = pal_data[2];
- pal_data += 3;
- }
- break;
- }
- _gfx->SetPalette(&palette, 2);
-}
-
void SciGUIpicture::decodeRLE(byte *rledata, byte *pixeldata, byte *outbuffer, int size) {
int pos = 0;
byte nextbyte;
diff --git a/engines/sci/gui/gui_picture.h b/engines/sci/gui/gui_picture.h
index 815172ed44..19922e8d2f 100644
--- a/engines/sci/gui/gui_picture.h
+++ b/engines/sci/gui/gui_picture.h
@@ -43,7 +43,6 @@ private:
void reset();
void draw11();
void decodeRLE(byte *rledata, byte *pixeldata, byte *outbuffer, int size);
- void drawPalette11(byte *data);
void drawCel(int16 x, int16 y, byte *pdata, int size);
void drawCelAmiga(int16 x, int16 y, byte *pdata, int size);
void drawVectorData(byte *data, int size);