From 3aa4f76ee422b42b6588296862e01eb3e8a50357 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 23 Jul 2010 07:36:55 +0000 Subject: SCI: Now saving the kPalVary state inside savegames svn-id: r51194 --- engines/sci/graphics/helpers.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'engines/sci/graphics/helpers.h') diff --git a/engines/sci/graphics/helpers.h b/engines/sci/graphics/helpers.h index f0ffecfb59..115a4c996e 100644 --- a/engines/sci/graphics/helpers.h +++ b/engines/sci/graphics/helpers.h @@ -28,6 +28,7 @@ #include "common/endian.h" // for READ_LE_UINT16 #include "common/rect.h" +#include "common/serializer.h" #include "sci/engine/vm_types.h" namespace Sci { @@ -82,6 +83,13 @@ struct Window : public Port { struct Color { byte used; byte r, g, b; + + void saveLoadWithSerializer(Common::Serializer &s) { + s.syncAsByte(used); + s.syncAsByte(r); + s.syncAsByte(g); + s.syncAsByte(b); + } }; struct Palette { @@ -89,6 +97,14 @@ struct Palette { uint32 timestamp; Color colors[256]; byte intensity[256]; + + void saveLoadWithSerializer(Common::Serializer &s) { + s.syncBytes(mapping, 256); + s.syncAsUint32LE(timestamp); + for (int i = 0; i < 256; i++) + colors[i].saveLoadWithSerializer(s); + s.syncBytes(intensity, 256); + } }; struct PalSchedule { -- cgit v1.2.3 From c422e39bf8caa0e95b3202e444cc0190d4708248 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Tue, 27 Jul 2010 17:51:44 +0000 Subject: SCI: implemented kPalette(save/restore) svn-id: r51381 --- engines/sci/graphics/helpers.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'engines/sci/graphics/helpers.h') diff --git a/engines/sci/graphics/helpers.h b/engines/sci/graphics/helpers.h index 115a4c996e..8f26ca296b 100644 --- a/engines/sci/graphics/helpers.h +++ b/engines/sci/graphics/helpers.h @@ -83,13 +83,6 @@ struct Window : public Port { struct Color { byte used; byte r, g, b; - - void saveLoadWithSerializer(Common::Serializer &s) { - s.syncAsByte(used); - s.syncAsByte(r); - s.syncAsByte(g); - s.syncAsByte(b); - } }; struct Palette { @@ -97,14 +90,6 @@ struct Palette { uint32 timestamp; Color colors[256]; byte intensity[256]; - - void saveLoadWithSerializer(Common::Serializer &s) { - s.syncBytes(mapping, 256); - s.syncAsUint32LE(timestamp); - for (int i = 0; i < 256; i++) - colors[i].saveLoadWithSerializer(s); - s.syncBytes(intensity, 256); - } }; struct PalSchedule { -- cgit v1.2.3