Skip to content

Commit

Permalink
PARALLACTION: Pass big value by reference rather than copying. CID 10…
Browse files Browse the repository at this point in the history
…03923
  • Loading branch information
sev- committed Nov 3, 2013
1 parent c24ba38 commit 18b7c5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/parallaction/graphics.cpp
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion engines/parallaction/graphics.h
Expand Up @@ -465,7 +465,7 @@ class Gfx {
void invertBackground(const Common::Rect& r);

// palette
void setPalette(Palette palette);
void setPalette(Palette &palette);
void setBlackPalette();
void animatePalette();

Expand Down

0 comments on commit 18b7c5f

Please sign in to comment.