All Templates/sad cat, cat, the cat with a knife/Meme: "#ifdef WIN32API
char *bitsBegin = lpBits1;
int offs = offsetDib + col*blockWidth*3 + j*3; #else
char *bitsBegin = lpBits1 + widthinbyte * (height - 1);
int offs = -offsetDib - col*blockWidth*3 - j*3;
#endif" Meme: "#ifdef WIN32API
char *bitsBegin = lpBits1;
int offs = offsetDib + col*blockWidth*3 + j*3; #else
char *bitsBegin = lpBits1 + widthinbyte * (height - 1);
int offs = -offsetDib - col*blockWidth*3 - j*3;
#endif"