ghost.EncodeHeader(fp);
if (m_loops!=1){
- ghost.SetLoops(max(0,m_loops-1));
+ ghost.SetLoops(__max(0,m_loops-1));
ghost.EncodeLoopExtension(fp);
}
////////////////////////////////////////////////////////////////////////////////
void CxImageGIF::compressNONE( int init_bits, CxFile* outfile)
{
- register long c;
- register long ent;
+ long c;
+ long ent;
// g_init_bits - initial number of bits
// g_outfile - pointer to output file
void CxImageGIF::compressLZW( int init_bits, CxFile* outfile)
{
- register long fcode;
- register long c;
- register long ent;
- register long hshift;
- register long disp;
- register long i;
+ long fcode;
+ long c;
+ long ent;
+ long hshift;
+ long disp;
+ long i;
// g_init_bits - initial number of bits
// g_outfile - pointer to output file
void CxImageGIF::cl_hash(long hsize)
{
- register long *htab_p = htab+hsize;
+ long *htab_p = htab+hsize;
- register long i;
- register long m1 = -1L;
+ long i;
+ long m1 = -1L;
i = hsize - 16;
*/
short CxImageGIF::decoder(CxFile* file, CImageIterator* iter, short linewidth, int &bad_code_count)
{
- register BYTE *sp, *bufptr;
+ BYTE *sp, *bufptr;
BYTE *buf;
- register short code, fc, oc, bufcnt;
+ short code, fc, oc, bufcnt;
short c, size, ret;
/* Initialize for decoding a new image... */
////////////////////////////////////////////////////////////////////////////////
void CxImageGIF::GifMix(CxImage & imgsrc2, struct_image & imgdesc)
{
- long ymin = max(0,(long)(GetHeight()-imgdesc.t - imgdesc.h));
+ long ymin = __max(0,(long)(GetHeight()-imgdesc.t - imgdesc.h));
long ymax = GetHeight()-imgdesc.t;
long xmin = imgdesc.l;
- long xmax = min(GetWidth(), (DWORD)(imgdesc.l + imgdesc.w));
+ long xmax = __min(GetWidth(), (DWORD)(imgdesc.l + imgdesc.w));
long ibg2= imgsrc2.GetTransIndex();
BYTE i2;