Mercurial > sdl-ios-xcode
diff src/video/SDL_blit_copy.c @ 2267:c785543d1843
Okay, still some bugs, but everything builds again...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 18 Aug 2007 05:39:09 +0000 |
parents | bee005ace1bf |
children | cc15254e44b6 |
line wrap: on
line diff
--- a/src/video/SDL_blit_copy.c Sat Aug 18 01:44:21 2007 +0000 +++ b/src/video/SDL_blit_copy.c Sat Aug 18 05:39:09 2007 +0000 @@ -95,12 +95,12 @@ int w, h; int srcskip, dstskip; - w = info->dst_w * info->dst->BytesPerPixel; + w = info->dst_w * info->dst_fmt->BytesPerPixel; h = info->dst_h; src = info->src; dst = info->dst; - srcskip = w + info->s_skip; - dstskip = w + info->dst_pitch; + srcskip = info->src_pitch; + dstskip = info->dst_pitch; #ifdef __SSE__ if (SDL_HasSSE() && !((uintptr_t) src & 15) && !((uintptr_t) dst & 15)) { @@ -139,11 +139,11 @@ int w, h; int skip; - w = info->dst_w * info->dst->BytesPerPixel; + w = info->dst_w * info->dst_fmt->BytesPerPixel; h = info->dst_h; src = info->src; dst = info->dst; - skip = w + info->s_skip; + skip = info->src_pitch; if ((dst < src) || (dst >= (src + h * skip))) { SDL_BlitCopy(info); } else {