summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqasyncimageio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqasyncimageio.cpp')
-rw-r--r--src/kernel/tqasyncimageio.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/kernel/tqasyncimageio.cpp b/src/kernel/tqasyncimageio.cpp
index f4a144c1b..f27e59ee0 100644
--- a/src/kernel/tqasyncimageio.cpp
+++ b/src/kernel/tqasyncimageio.cpp
@@ -368,13 +368,13 @@ TQImageDecoder::~TQImageDecoder()
Returns the image currently being decoded.
*/
-static bool plugins_loaded = FALSE;
+static bool plugins_loaded = false;
/*!
Call this function to decode some data into image changes. The
data in \a buffer will be decoded, sending change information to
the TQImageConsumer of this TQImageDecoder until one of the change
- functions of the consumer returns FALSE. The length of the data is
+ functions of the consumer returns false. The length of the data is
given in \a length.
Returns the number of bytes consumed: 0 if consumption is
@@ -398,7 +398,7 @@ int TQImageDecoder::decode(const uchar* buffer, int length)
}
if ( !actual_decoder && !plugins_loaded) {
tqt_init_image_plugins();
- plugins_loaded = TRUE;
+ plugins_loaded = true;
for (TQImageFormatType* f = TQImageDecoderPrivate::factories->first();
f && !actual_decoder;
@@ -468,7 +468,7 @@ const char* TQImageDecoder::formatName(const uchar* buffer, int length)
}
if ( !name && !plugins_loaded) {
tqt_init_image_plugins();
- plugins_loaded = TRUE;
+ plugins_loaded = true;
for (TQImageFormatType* f = TQImageDecoderPrivate::factories->first();
f && !name;
f = TQImageDecoderPrivate::factories->next())
@@ -647,8 +647,8 @@ TQImageFormatType::~TQImageFormatType()
/*!
- Returns TRUE if TQt was compiled with built-in GIF reading support;
- otherwise returns FALSE.
+ Returns true if TQt was compiled with built-in GIF reading support;
+ otherwise returns false.
*/
bool qt_builtin_gif_reader()
{
@@ -683,12 +683,12 @@ TQGIFFormat::TQGIFFormat()
lncols = 0;
gncols = 0;
disposal = NoDisposal;
- out_of_bounds = FALSE;
- disposed = TRUE;
+ out_of_bounds = false;
+ disposed = true;
frame = -1;
state = Header;
count = 0;
- lcmap = FALSE;
+ lcmap = false;
}
/*!
@@ -782,7 +782,7 @@ void TQGIFFormat::disposePrevious( TQImage& img, TQImageConsumer* consumer )
}
disposal = NoDisposal; // Until an extension says otherwise.
- disposed = TRUE;
+ disposed = true;
}
/*!
@@ -799,7 +799,7 @@ int TQGIFFormat::decode(TQImage& img, TQImageConsumer* consumer,
// CompuServe Incorporated."
#define LM(l, m) (((m)<<8)|l)
- digress = FALSE;
+ digress = false;
int initial = length;
TQRgb** line = (TQRgb **)img.jumpTable();
while (!digress && length) {
@@ -878,7 +878,7 @@ int TQGIFFormat::decode(TQImage& img, TQImageConsumer* consumer,
state=Done;
break;
default:
- digress=TRUE;
+ digress=true;
// Unexpected Introducer - ignore block
state=Error;
}
@@ -917,7 +917,7 @@ int TQGIFFormat::decode(TQImage& img, TQImageConsumer* consumer,
line = (TQRgb **)img.jumpTable();
disposePrevious( img, consumer );
- disposed = FALSE;
+ disposed = false;
left = newleft;
top = newtop;
@@ -991,7 +991,7 @@ int TQGIFFormat::decode(TQImage& img, TQImageConsumer* consumer,
bitcount = 0;
sp = stack;
firstcode = oldcode = 0;
- needfirst = FALSE;
+ needfirst = false;
out_of_bounds = left>=swidth || y>=sheight;
}
break;
@@ -1024,7 +1024,7 @@ int TQGIFFormat::decode(TQImage& img, TQImageConsumer* consumer,
} else {
if (consumer) {
consumer->frameDone();
- digress = TRUE;
+ digress = true;
}
state=Introducer;
@@ -1053,7 +1053,7 @@ int TQGIFFormat::decode(TQImage& img, TQImageConsumer* consumer,
table[0][i]=table[1][i]=0;
}
}
- needfirst=TRUE;
+ needfirst=true;
} else if (code==end_code) {
bitcount = -32768;
// Left the block end arrive
@@ -1063,8 +1063,8 @@ int TQGIFFormat::decode(TQImage& img, TQImageConsumer* consumer,
if (!out_of_bounds && line && firstcode!=trans_index)
line[y][x] = color(firstcode);
x++;
- if (x>=swidth) out_of_bounds = TRUE;
- needfirst=FALSE;
+ if (x>=swidth) out_of_bounds = true;
+ needfirst=false;
if (x>=left+width) {
x=left;
out_of_bounds = left>=swidth || y>=sheight;
@@ -1107,7 +1107,7 @@ int TQGIFFormat::decode(TQImage& img, TQImageConsumer* consumer,
if (!out_of_bounds && line && *sp!=trans_index)
line[y][x] = color(*sp);
x++;
- if (x>=swidth) out_of_bounds = TRUE;
+ if (x>=swidth) out_of_bounds = true;
if (x>=left+width) {
x=left;
out_of_bounds = left>=swidth || y>=sheight;
@@ -1202,7 +1202,7 @@ int TQGIFFormat::decode(TQImage& img, TQImageConsumer* consumer,
if (count==expectcount) state=SkipBlockSize;
break;
case Done:
- digress=TRUE;
+ digress=true;
/* Netscape ignores the junk, so we do too.
length++; // Unget
state=Error; // More calls to this is an error
@@ -1301,7 +1301,7 @@ void TQGIFFormat::nextY(TQImage& img, TQImageConsumer* consumer)
}
// Consume bogus extra lines
- if (y >= sheight) out_of_bounds=TRUE; //y=bottom;
+ if (y >= sheight) out_of_bounds=true; //y=bottom;
}
TQRgb TQGIFFormat::color( uchar index ) const