true -> TRUE.  Closes
@@ -89,7 +89,7 @@ struct MySrcManager
man->pub.bytes_in_buffer = man->mLen;
man->mUsed = true;
}
- return true;
+ return TRUE;
}
static void my_skip_input_data(j_decompress_ptr cinfo, long num_bytes)
{
@@ -106,7 +106,7 @@ struct MySrcManager
{
MySrcManager *man = (MySrcManager *)cinfo->src;
man->mUsed = false;
- return true;
+ return TRUE;
}
static void my_term_source(j_decompress_ptr cinfo)
{
@@ -264,8 +264,8 @@ static bool EncodeJPG(Surface *inSurface, ByteArray *outBytes,double inQuality)
cinfo.in_color_space = JCS_RGB;
jpeg_set_defaults(&cinfo);
- jpeg_set_quality (&cinfo, (int)(inQuality * 100), true);
- jpeg_start_compress(&cinfo, true);
+ jpeg_set_quality(&cinfo, (int)(inQuality * 100), TRUE);
+ jpeg_start_compress(&cinfo, TRUE);
PixelFormat srcFmt = inSurface->Format();
if (srcFmt==pfAlpha)
