From 350ddcee102b56029c42016b8c116fc839936e1c Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Tue, 14 Nov 2017 13:03:15 -0600 Subject: FULLPIPE: Take references instead of pointers for required arguments in statics, remove unnecessary Picture allocation --- engines/fullpipe/gfx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/fullpipe/gfx.cpp') 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(); -- cgit v1.2.3