diff options
Diffstat (limited to 'engines/m4/graphics.cpp')
-rw-r--r-- | engines/m4/graphics.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/m4/graphics.cpp b/engines/m4/graphics.cpp index 5a6f598731..eb66a2e20e 100644 --- a/engines/m4/graphics.cpp +++ b/engines/m4/graphics.cpp @@ -59,6 +59,12 @@ RGBList::~RGBList() { delete[] _palIndexes; } +void RGBList::setRange(int start, int count, const RGB8 *src) { + assert((start + count) <= _size); + + Common::copy(&src[0], &src[count], &_data[start]); +} + //-------------------------------------------------------------------------- #define VGA_COLOR_TRANS(x) (x == 0x3f ? 255 : x << 2) |