#include #include "zoomer.h" static int theBPP; static int w1,h1; static int w2,h2; static long *addrX=NULL,*addrY=NULL; int buildZoomer(int _w1,int _h1,int _w2,int _h2,int bpp) { if (_w1&&_h1&&_w2&&_h2&&((bpp==8)||(bpp==15)||(bpp==16)||(bpp==24)||(bpp==32))) { w1=_w1;h1=_h1;w2=_w2;h2=_h2; theBPP = (bpp==8)?1: (bpp==15)?2: (bpp==16)?2: (bpp==24)?3: (bpp==32)?4:0; if (addrX) delete[] addrX; if (addrY) delete[] addrY; addrX=new long[w2+16]; addrY=new long[h2+16]; for(int t=0;t