aboutsummaryrefslogtreecommitdiff
path: root/common/scaler.cpp
diff options
context:
space:
mode:
authorGregory Montoir2004-08-07 17:21:53 +0000
committerGregory Montoir2004-08-07 17:21:53 +0000
commitdb6e7ae2caac16c1babe1ef53d0fea0eac581c5c (patch)
tree073af522918e00189fe2b5d22a9c94e05b32ea9e /common/scaler.cpp
parentf122dd6fb3f91600e1eeb1c7361ab0f341397807 (diff)
downloadscummvm-rg350-db6e7ae2caac16c1babe1ef53d0fea0eac581c5c.tar.gz
scummvm-rg350-db6e7ae2caac16c1babe1ef53d0fea0eac581c5c.tar.bz2
scummvm-rg350-db6e7ae2caac16c1babe1ef53d0fea0eac581c5c.zip
centers the scaled bitmap and fix the scaling of borders for ASM version)
svn-id: r14505
Diffstat (limited to 'common/scaler.cpp')
-rw-r--r--common/scaler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/scaler.cpp b/common/scaler.cpp
index 0ef78768fa..8b53560afc 100644
--- a/common/scaler.cpp
+++ b/common/scaler.cpp
@@ -173,7 +173,7 @@ void Normal3x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPit
*/
void AdvMame2x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch,
int width, int height) {
- scale(2, dstPtr, dstPitch, srcPtr, srcPitch, 2, width, height);
+ scale(2, dstPtr, dstPitch, srcPtr - srcPitch, srcPitch, 2, width, height);
}
/**
@@ -182,7 +182,7 @@ void AdvMame2x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPi
*/
void AdvMame3x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch,
int width, int height) {
- scale(3, dstPtr, dstPitch, srcPtr, srcPitch, 2, width, height);
+ scale(3, dstPtr, dstPitch, srcPtr - srcPitch, srcPitch, 2, width, height);
}
template<int bitFormat>