From 4bb392b593c492299dd916784548dc56bc0b25cb Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 22 Jun 2009 02:36:16 +0000 Subject: Add wrapper functionality for copying full palettes. svn-id: r41742 --- engines/kyra/screen.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/kyra/screen.cpp') diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp index 7e88c56497..b82ec0d09a 100644 --- a/engines/kyra/screen.cpp +++ b/engines/kyra/screen.cpp @@ -2666,6 +2666,10 @@ Palette &Screen::getPalette(int num) { return *_palettes[num]; } +void Screen::copyPalette(const int dst, const int src) { + getPalette(dst).copy(getPalette(src)); +} + byte Screen::getShapeFlag1(int x, int y) { uint8 color = _shapePages[0][y * SCREEN_W + x]; color &= 0x80; -- cgit v1.2.3