Victor Eremin ErV2005@rambler.ru writes:
+void mask_copy(DWORD srcMask, BYTE srcPixelSize,
DWORD dstMask, BYTE dstPixelSize,
BYTE *src, BYTE* dst, DWORD src_pitch, DWORD dst_pitch,
- unsigned int w, unsigned int h){
- unsigned int x, y;
- BYTE i;
- BYTE *dstp, *srcp, *dstmaskp, *srcmaskp, *channelValuePtr;
- DWORD channelValue;
- BYTE upShift, downShift;
- dstmaskp = (BYTE*)&dstMask;
- srcmaskp = (BYTE*)&srcMask;
- channelValuePtr = (BYTE*)&channelValue;
You can't access DWORDs as bytes, that will break on big-endian platforms.