aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/charset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/scumm/charset.cpp')
-rw-r--r--engines/scumm/charset.cpp21
1 files changed, 19 insertions, 2 deletions
diff --git a/engines/scumm/charset.cpp b/engines/scumm/charset.cpp
index 654a7fd6c3..28012e5759 100644
--- a/engines/scumm/charset.cpp
+++ b/engines/scumm/charset.cpp
@@ -1,5 +1,8 @@
-/* ScummVM - Scumm Interpreter
- * Copyright (C) 2001-2006 The ScummVM project
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -1311,6 +1314,20 @@ void CharsetRenderer::translateColor() {
}
}
+void CharsetRenderer::saveLoadWithSerializer(Serializer *ser) {
+ static const SaveLoadEntry charsetRendererEntries[] = {
+ MKLINE(CharsetRenderer, _curId, sleByte, VER(73)),
+ MKLINE(CharsetRenderer, _color, sleByte, VER(73)),
+ MKEND()
+ };
+
+ ser->saveLoadEntries(this, charsetRendererEntries);
+
+ if (ser->isLoading()) {
+ setCurID(_curId);
+ setColor(_color);
+ }
+}
void CharsetRendererClassic::printChar(int chr, bool ignoreCharsetMask) {
int width, height, origWidth, origHeight;