diff options
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/gui/gui_picture.cpp | 32 | ||||
-rw-r--r-- | engines/sci/gui/gui_picture.h | 1 |
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); |