COPY_COLORKEY_FX: Do not use lvalue casts.

This commit is contained in:
Marcus Meissner 2004-07-06 18:43:10 +00:00 committed by Alexandre Julliard
parent 1ab0e4183e
commit 42e1216cf5
1 changed files with 6 additions and 6 deletions

View File

@ -749,16 +749,16 @@ DIB_DirectDrawSurface_Blt(LPDIRECTDRAWSURFACE7 iface, LPRECT rdst,
}
#define COPY_COLORKEY_FX(type) { \
type *s = (type *) sbuf, *d = (type *) dbuf, *dx, tmp; \
type *s, *d = (type *) dbuf, *dx, tmp; \
for (y = sy = 0; y < dstheight; y++, sy += yinc) { \
(LPBYTE)s = sbase + (sy >> 16) * sdesc.u1.lPitch; \
(LPBYTE)dx = d; \
s = (type*)(sbase + (sy >> 16) * sdesc.u1.lPitch); \
dx = d; \
for (x = sx = 0; x < dstwidth; x++, sx += xinc) { \
tmp = s[sx >> 16]; \
if (tmp < keylow || tmp > keyhigh) dx[0] = tmp; \
(LPBYTE)dx += dstxinc; \
dx = (type*)(((LPBYTE)dx)+dstxinc); \
} \
(LPBYTE)d += dstyinc; \
d = (type*)(((LPBYTE)d)+dstyinc); \
} \
break; }