summaryrefslogtreecommitdiff
path: root/src/win95/iff_ilbm.cpp
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-12-18 05:08:52 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:37 +0200
commit080430b3bda2bec05362119447d51b6c37f1cfc1 (patch)
treea4d2354ed94acb903f7f79a83e198398cb6eb757 /src/win95/iff_ilbm.cpp
parent95b8b49b7602e4e2d3cd9e38273fa94451bec780 (diff)
Redid the most of the file loading/saving. Now uses $HOME/.avp/ and
$AVP_DIR to look for files.
Diffstat (limited to 'src/win95/iff_ilbm.cpp')
-rw-r--r--src/win95/iff_ilbm.cpp20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/win95/iff_ilbm.cpp b/src/win95/iff_ilbm.cpp
index b5ebcc5..c09d032 100644
--- a/src/win95/iff_ilbm.cpp
+++ b/src/win95/iff_ilbm.cpp
@@ -84,10 +84,6 @@ namespace IFF
return true;
}
-// The uninitialised part of byte is shifted out.
-#ifdef _MSC_VER
-#pragma warning(disable: 4701)
-#endif
bool IlbmBodyChunk::EncodeNextRow(unsigned const * pRow)
{
if (!pEncodeDst) return false;
@@ -96,7 +92,7 @@ namespace IFF
{
UBYTE * pBuf = pEncodeSrc;
- unsigned byte;
+ unsigned byte=0;
for (unsigned x=0; x<nWidth; ++x)
{
byte <<= 1;
@@ -164,9 +160,6 @@ namespace IFF
return true;
}
-#ifdef _MSC_VER
-#pragma warning(default: 4701)
-#endif
bool IlbmBodyChunk::EndEncode()
{
@@ -206,10 +199,6 @@ namespace IFF
return pData != NULL;
}
-// The uninitialised part of pDecodeDst is shifted out.
-#ifdef _MSC_VER
-#pragma warning(disable: 4701)
-#endif
unsigned const * IlbmBodyChunk::DecodeNextRow() const
{
if (!pDecodeSrc || !pDecodeDst) return NULL;
@@ -224,7 +213,7 @@ namespace IFF
for (unsigned b=0; b<nBitPlanes; ++b)
{
- unsigned byte;
+ unsigned byte=0;
for (unsigned x=0; x<nWidth; ++x)
{
if (!(x&7))
@@ -282,7 +271,7 @@ namespace IFF
{
for (unsigned b=0; b<nBitPlanes; ++b)
{
- unsigned byte;
+ unsigned byte=0;
for (unsigned x=0; x<nWidth; ++x)
{
if (!(x&7))
@@ -304,9 +293,6 @@ namespace IFF
return pDecodeDst;
}
-#ifdef _MSC_VER
-#pragma warning(default: 4701)
-#endif
IlbmBodyChunk::~IlbmBodyChunk()
{