diff --git a/engines/grim/bitmap.h b/engines/grim/bitmap.h index d996cd74cbe..7785741e972 100644 --- a/engines/grim/bitmap.h +++ b/engines/grim/bitmap.h @@ -165,6 +165,7 @@ public: const Graphics::PixelBuffer &getData(int num) const { return _data->getImageData(num); } const Graphics::PixelBuffer &getData() const { return getData(_currImage); } + BitmapData *getBitmapData() const { return _data; } void *getTexIds() const { return _data->_texIds; } int getNumTex() const { return _data->_numTex; } const Graphics::PixelFormat &getPixelFormat(int num) const; diff --git a/engines/grim/grim.cpp b/engines/grim/grim.cpp index 828cbc840ee..f00370d2e3f 100644 --- a/engines/grim/grim.cpp +++ b/engines/grim/grim.cpp @@ -1061,6 +1061,7 @@ void GrimEngine::restoreGRIM() { } void GrimEngine::storeSaveGameImage(SaveGame *state) { + const Graphics::PixelFormat image_format = Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0); int width = 250, height = 188; Bitmap *screenshot; @@ -1076,6 +1077,7 @@ void GrimEngine::storeSaveGameImage(SaveGame *state) { if (screenshot) { int size = screenshot->getWidth() * screenshot->getHeight(); screenshot->setActiveImage(0); + screenshot->getBitmapData()->convertToColorFormat(image_format); uint16 *data = (uint16 *)screenshot->getData().getRawBuffer(); for (int l = 0; l < size; l++) { state->writeLEUint16(data[l]);