Re: wined3d: universal surface convertor function for unsigned integer color formats(4th attempt)
24 Jul
2008
24 Jul
'08
9:03 a.m.
Victor Eremin <ErV2005(a)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. -- Alexandre Julliard julliard(a)winehq.org
6351
Age (days ago)
6351
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard