2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 07:47:42 +00:00

Windows compile fixes, and warning squash

This commit is contained in:
2016-07-23 23:05:12 -07:00
parent 4b10697a5a
commit 76b88d0ad6
11 changed files with 48 additions and 18 deletions

View File

@@ -29,7 +29,7 @@ static void BoxFilter(const uint8_t* input, unsigned chanCount,
if (inHeight > 1)
mipHeight = inHeight / 2;
int y,x,c;
unsigned y,x,c;
for (y=0 ; y<mipHeight ; ++y)
{
unsigned miplineBase = mipWidth * y;
@@ -753,7 +753,7 @@ bool TXTR::CookPC(const hecl::ProjectPath& inPath, const hecl::ProjectPath& outP
}
break;
case PNG_COLOR_TYPE_GRAY_ALPHA:
for (int i=0 ; i<width ; ++i)
for (unsigned i=0 ; i<width ; ++i)
{
size_t inbase = i*2;
size_t outbase = (r*width+i)*4;
@@ -764,7 +764,7 @@ bool TXTR::CookPC(const hecl::ProjectPath& inPath, const hecl::ProjectPath& outP
}
break;
case PNG_COLOR_TYPE_RGB:
for (int i=0 ; i<width ; ++i)
for (unsigned i=0 ; i<width ; ++i)
{
size_t inbase = i*3;
size_t outbase = (r*width+i)*4;
@@ -775,7 +775,7 @@ bool TXTR::CookPC(const hecl::ProjectPath& inPath, const hecl::ProjectPath& outP
}
break;
case PNG_COLOR_TYPE_RGB_ALPHA:
for (int i=0 ; i<width ; ++i)
for (unsigned i=0 ; i<width ; ++i)
{
size_t inbase = i*4;
size_t outbase = (r*width+i)*4;