aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJamieson Christian2003-06-11 05:08:41 +0000
committerJamieson Christian2003-06-11 05:08:41 +0000
commit167ad2575a68ec09e6b855c8d3eb3cbc4cdcfeef (patch)
tree9e63aec54c479e2c7e09c3724a8c05aa177ccc08 /common
parenta26c74c108c2b1c7458ab05d6f85484dda47b827 (diff)
downloadscummvm-rg350-167ad2575a68ec09e6b855c8d3eb3cbc4cdcfeef.tar.gz
scummvm-rg350-167ad2575a68ec09e6b855c8d3eb3cbc4cdcfeef.tar.bz2
scummvm-rg350-167ad2575a68ec09e6b855c8d3eb3cbc4cdcfeef.zip
Fixed MSVC warning
svn-id: r8431
Diffstat (limited to 'common')
-rw-r--r--common/scaler.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/common/scaler.cpp b/common/scaler.cpp
index d7dd46d42b..7c9a5020c8 100644
--- a/common/scaler.cpp
+++ b/common/scaler.cpp
@@ -198,10 +198,10 @@ void Super2xSaI(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstP
else
product1a = color5;
- *(dP + 0) = product1a;
- *(dP + 1) = product1b;
- *(dP + dstPitch/2 + 0) = product2a;
- *(dP + dstPitch/2 + 1) = product2b;
+ *(dP + 0) = (uint16) product1a;
+ *(dP + 1) = (uint16) product1b;
+ *(dP + dstPitch/2 + 0) = (uint16) product2a;
+ *(dP + dstPitch/2 + 1) = (uint16) product2b;
bP += 1;
dP += 2;
@@ -303,10 +303,10 @@ void SuperEagle(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstP
product1b = Q_INTERPOLATE(color6, color6, color6, product1b);
}
- *(dP + 0) = product1a;
- *(dP + 1) = product1b;
- *(dP + dstPitch/2 + 0) = product2a;
- *(dP + dstPitch/2 + 1) = product2b;
+ *(dP + 0) = (uint16) product1a;
+ *(dP + 1) = (uint16) product1b;
+ *(dP + dstPitch/2 + 0) = (uint16) product2a;
+ *(dP + dstPitch/2 + 1) = (uint16) product2b;
bP += 1;
dP += 2;
@@ -440,10 +440,10 @@ void _2xSaI(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch
}
}
- *(dP + 0) = colorA;
- *(dP + 1) = product;
- *(dP + dstPitch/2 + 0) = product1;
- *(dP + dstPitch/2 + 1) = product2;
+ *(dP + 0) = (uint16) colorA;
+ *(dP + 1) = (uint16) product;
+ *(dP + dstPitch/2 + 0) = (uint16) product1;
+ *(dP + dstPitch/2 + 1) = (uint16) product2;
bP += 1;
dP += 2;