diff options
author | Colin Snover | 2017-11-14 13:03:15 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2017-11-18 22:35:12 +0100 |
commit | 350ddcee102b56029c42016b8c116fc839936e1c (patch) | |
tree | 14404e13d8b0d3944da742a7db6f503e193648ff /engines/fullpipe/gfx.cpp | |
parent | c85f409a0b2fa1094ebd1a51c088d2d830383d38 (diff) | |
download | scummvm-rg350-350ddcee102b56029c42016b8c116fc839936e1c.tar.gz scummvm-rg350-350ddcee102b56029c42016b8c116fc839936e1c.tar.bz2 scummvm-rg350-350ddcee102b56029c42016b8c116fc839936e1c.zip |
FULLPIPE: Take references instead of pointers for required arguments in statics, remove unnecessary Picture allocation
Diffstat (limited to 'engines/fullpipe/gfx.cpp')
-rw-r--r-- | engines/fullpipe/gfx.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index 3abf2fc7a6..ecc9f8c915 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -664,9 +664,9 @@ void Picture::setPaletteData(const Palette &pal) { } } -void Picture::copyMemoryObject2(Picture *src) { - if (_width == src->_width && _height == src->_height) { - if (src->_memoryObject2 && src->_memoryObject2->_rows && _memoryObject2) { +void Picture::copyMemoryObject2(Picture &src) { + if (_width == src._width && _height == src._height) { + if (src._memoryObject2 && src._memoryObject2->_rows && _memoryObject2) { byte *data = loadData(); _memoryObject2->copyData(data, _dataSize); setAOIDs(); |