aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-11-03 12:03:12 +0200
committerEugene Sandulenko2013-11-03 12:20:39 +0200
commit18b7c5fd9c56ba5000dce3d898b334d76e72b482 (patch)
tree83579b34aa30476b44a9e4a1feea68794bfee01c /engines
parentc24ba381cba9a18d0ab568d8709d64633472d8ca (diff)
downloadscummvm-rg350-18b7c5fd9c56ba5000dce3d898b334d76e72b482.tar.gz
scummvm-rg350-18b7c5fd9c56ba5000dce3d898b334d76e72b482.tar.bz2
scummvm-rg350-18b7c5fd9c56ba5000dce3d898b334d76e72b482.zip
PARALLACTION: Pass big value by reference rather than copying. CID 1003923
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/graphics.cpp2
-rw-r--r--engines/parallaction/graphics.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp
index 3f36d56420..dca1870cb7 100644
--- a/engines/parallaction/graphics.cpp
+++ b/engines/parallaction/graphics.cpp
@@ -218,7 +218,7 @@ void Palette::rotate(uint first, uint last, bool forward) {
-void Gfx::setPalette(Palette pal) {
+void Gfx::setPalette(Palette &pal) {
byte sysPal[256*3];
uint n = pal.fillRGB(sysPal);
diff --git a/engines/parallaction/graphics.h b/engines/parallaction/graphics.h
index 55c1c0c04e..550f9d1dd9 100644
--- a/engines/parallaction/graphics.h
+++ b/engines/parallaction/graphics.h
@@ -465,7 +465,7 @@ public:
void invertBackground(const Common::Rect& r);
// palette
- void setPalette(Palette palette);
+ void setPalette(Palette &palette);
void setBlackPalette();
void animatePalette();