From 61795739f8f45c5de4cfd0fe57af459146c5173c Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 16 Nov 2011 18:06:30 +0100 Subject: COMMON: Rename Common::set_to to Common::fill. This makes the name match with the name of the STL function with the same behavior. --- engines/sword25/gfx/image/renderedimage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sword25/gfx') diff --git a/engines/sword25/gfx/image/renderedimage.cpp b/engines/sword25/gfx/image/renderedimage.cpp index 3b29b0333f..b0d4853e5e 100644 --- a/engines/sword25/gfx/image/renderedimage.cpp +++ b/engines/sword25/gfx/image/renderedimage.cpp @@ -152,7 +152,7 @@ RenderedImage::RenderedImage(uint width, uint height, bool &result) : _height(height) { _data = new byte[width * height * 4]; - Common::set_to(_data, &_data[width * height * 4], 0); + Common::fill(_data, &_data[width * height * 4], 0); _backSurface = Kernel::getInstance()->getGfx()->getSurface(); @@ -507,7 +507,7 @@ int *RenderedImage::scaleLine(int size, int srcSize) { int scale = 100 * size / srcSize; assert(scale > 0); int *v = new int[size]; - Common::set_to(v, &v[size], 0); + Common::fill(v, &v[size], 0); int distCtr = 0; int *destP = v; -- cgit v1.2.3