Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorv0lt <v0lt@users.sourceforge.net>2012-02-05 21:13:25 +0400
committerv0lt <v0lt@users.sourceforge.net>2012-02-05 21:13:25 +0400
commit4cf080ae22b2068f17168b8196235d05daa26577 (patch)
treee3878f6e5fc24309c41b15944b1831af731a431a /src/Subtitles
parentb313c3b1b6fe76ad5618c518aece5827e52f4a9a (diff)
fixed some C4018 warnings
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4041 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/Subtitles')
-rw-r--r--src/Subtitles/Rasterizer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Subtitles/Rasterizer.cpp b/src/Subtitles/Rasterizer.cpp
index 366187836..2ef82577f 100644
--- a/src/Subtitles/Rasterizer.cpp
+++ b/src/Subtitles/Rasterizer.cpp
@@ -1117,7 +1117,7 @@ void Rasterizer::Draw_noAlpha_sp_Body_0(RasterizerNfo& rnfo)
// xo is the offset (usually negative) we have moved into the image
// So if we have passed the switchpoint (?) switch to another colour
// (So switchpts stores both colours *and* coordinates?)
- int gran = min(rnfo.sw[3]+1-rnfo.xo,rnfo.w);
+ int gran = min((int)rnfo.sw[3]+1-rnfo.xo,rnfo.w);
int color2 = rnfo.sw[2];
while (h--) {
for (int wt=0; wt<gran; ++wt) {
@@ -1139,7 +1139,7 @@ void Rasterizer::Draw_noAlpha_sp_noBody_0(RasterizerNfo& rnfo)
byte* src = rnfo.src;
DWORD* dst = rnfo.dst;
- int gran = min(rnfo.sw[3]+1-rnfo.xo,rnfo.w);
+ int gran = min((int)rnfo.sw[3]+1-rnfo.xo,rnfo.w);
int color2 = rnfo.sw[2];
while (h--) {
for (int wt=0; wt<gran; ++wt) {
@@ -1196,7 +1196,7 @@ void Rasterizer::Draw_Alpha_spFF_noBody_0(RasterizerNfo& rnfo)
byte* src = rnfo.src;
DWORD* dst = rnfo.dst;
- int gran = min(rnfo.sw[3]+1-rnfo.xo,rnfo.w);
+ int gran = min((int)rnfo.sw[3]+1-rnfo.xo,rnfo.w);
int color2 = rnfo.sw[2];
while (h--) {
#ifdef _VSMOD // patch m006. moveable vector clip
@@ -1261,7 +1261,7 @@ void Rasterizer::Draw_Alpha_sp_noBody_0(RasterizerNfo& rnfo)
byte* src = rnfo.src;
DWORD* dst = rnfo.dst;
- int gran = min(rnfo.sw[3]+1-rnfo.xo,rnfo.w);
+ int gran = min((int)rnfo.sw[3]+1-rnfo.xo,rnfo.w);
int color2 = rnfo.sw[2];
while (h--) {
#ifdef _VSMOD // patch m006. moveable vector clip
@@ -1347,7 +1347,7 @@ void Rasterizer::Draw_noAlpha_sp_Body_sse2(RasterizerNfo& rnfo)
// xo is the offset (usually negative) we have moved into the image
// So if we have passed the switchpoint (?) switch to another colour
// (So switchpts stores both colours *and* coordinates?)
- int gran = min(rnfo.sw[3]+1-rnfo.xo,rnfo.w);
+ int gran = min((int)rnfo.sw[3]+1-rnfo.xo,rnfo.w);
int end_gran = ((gran-1)/8)*8;
int end_w = gran+((rnfo.w-gran-1)/8)*8;
int color2 = rnfo.sw[2];
@@ -1380,7 +1380,7 @@ void Rasterizer::Draw_noAlpha_sp_noBody_sse2(RasterizerNfo& rnfo)
byte* src = rnfo.src;
DWORD* dst = rnfo.dst;
- int gran = min(rnfo.sw[3]+1-rnfo.xo,rnfo.w);
+ int gran = min((int)rnfo.sw[3]+1-rnfo.xo,rnfo.w);
int color2 = rnfo.sw[2];
while (h--) {
for (int wt=0; wt<gran; ++wt) {
@@ -1464,7 +1464,7 @@ void Rasterizer::Draw_Alpha_sp_Body_sse2(RasterizerNfo& rnfo)
byte* s = rnfo.s;
DWORD* dst = rnfo.dst;
- int gran = min(rnfo.sw[3]+1-rnfo.xo,rnfo.w);
+ int gran = min((int)rnfo.sw[3]+1-rnfo.xo,rnfo.w);
int color2 = rnfo.sw[2];
while (h--) {
#ifdef _VSMOD // patch m006. moveable vector clip
@@ -1502,7 +1502,7 @@ void Rasterizer::Draw_Alpha_sp_noBody_sse2(RasterizerNfo& rnfo)
byte* src = rnfo.src;
DWORD* dst = rnfo.dst;
- int gran = min(rnfo.sw[3]+1-rnfo.xo,rnfo.w);
+ int gran = min((int)rnfo.sw[3]+1-rnfo.xo,rnfo.w);
int color2 = rnfo.sw[2];
UNUSED_ALWAYS(color2);