GRAPHICS: Various formatting fixes

This commit is contained in:
Eric Culp 2012-07-24 17:44:45 -04:00 committed by Filippos Karapetis
parent 4c967c5fbc
commit 4c4028cf1d
4 changed files with 17 additions and 17 deletions

View file

@ -45,17 +45,17 @@ void SourceScaler::scale(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr,
if (!_enable) {
// Do not pass _oldSrc, do not update _oldSrc
internScale(srcPtr, srcPitch,
dstPtr, dstPitch,
NULL, 0,
width, height);
dstPtr, dstPitch,
NULL, 0,
width, height);
return;
}
int offset = (_padding + x) * _format.bytesPerPixel + (_padding + y) * srcPitch;
// Call user defined scale function
internScale(srcPtr, srcPitch,
dstPtr, dstPitch,
_oldSrc + offset, srcPitch,
width, height);
dstPtr, dstPitch,
_oldSrc + offset, srcPitch,
width, height);
// Update old src
byte *oldSrc = _oldSrc + offset;
while (height--) {