[Scummvm-cvs-logs] SF.net SVN: scummvm: [28523] scummvm/trunk/engines/parallaction
peres001 at users.sourceforge.net
peres001 at users.sourceforge.net
Sat Aug 11 14:26:18 CEST 2007
Revision: 28523
http://scummvm.svn.sourceforge.net/scummvm/?rev=28523&view=rev
Author: peres001
Date: 2007-08-11 05:26:17 -0700 (Sat, 11 Aug 2007)
Log Message:
-----------
Added new clone method to Palette object.
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/graphics.cpp
scummvm/trunk/engines/parallaction/graphics.h
Modified: scummvm/trunk/engines/parallaction/graphics.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/graphics.cpp 2007-08-11 11:31:31 UTC (rev 28522)
+++ scummvm/trunk/engines/parallaction/graphics.cpp 2007-08-11 12:26:17 UTC (rev 28523)
@@ -54,6 +54,10 @@
}
Palette::Palette(const Palette &pal) {
+ clone(pal);
+}
+
+void Palette::clone(const Palette &pal) {
_colors = pal._colors;
_hb = pal._hb;
_size = pal._size;
Modified: scummvm/trunk/engines/parallaction/graphics.h
===================================================================
--- scummvm/trunk/engines/parallaction/graphics.h 2007-08-11 11:31:31 UTC (rev 28522)
+++ scummvm/trunk/engines/parallaction/graphics.h 2007-08-11 12:26:17 UTC (rev 28523)
@@ -171,6 +171,8 @@
Palette();
Palette(const Palette &pal);
+ void clone(const Palette &pal);
+
void makeBlack();
void setEntries(byte* data, uint first, uint num);
void setEntry(uint index, int red, int green, int blue);
@@ -181,7 +183,6 @@
void rotate(uint first, uint last, bool forward);
};
-
class Gfx {
public:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list