diff src/video/SDL_blit_copy.c @ 2262:bee005ace1bf

Work in progress: merging new texture features into SDL blit system
author Sam Lantinga <slouken@libsdl.org>
date Fri, 17 Aug 2007 06:21:58 +0000
parents 79e00f5561f4
children c785543d1843
line wrap: on
line diff
--- a/src/video/SDL_blit_copy.c	Fri Aug 17 03:22:03 2007 +0000
+++ b/src/video/SDL_blit_copy.c	Fri Aug 17 06:21:58 2007 +0000
@@ -95,12 +95,12 @@
     int w, h;
     int srcskip, dstskip;
 
-    w = info->d_width * info->dst->BytesPerPixel;
-    h = info->d_height;
-    src = info->s_pixels;
-    dst = info->d_pixels;
+    w = info->dst_w * info->dst->BytesPerPixel;
+    h = info->dst_h;
+    src = info->src;
+    dst = info->dst;
     srcskip = w + info->s_skip;
-    dstskip = w + info->d_skip;
+    dstskip = w + info->dst_pitch;
 
 #ifdef __SSE__
     if (SDL_HasSSE() && !((uintptr_t) src & 15) && !((uintptr_t) dst & 15)) {
@@ -139,10 +139,10 @@
     int w, h;
     int skip;
 
-    w = info->d_width * info->dst->BytesPerPixel;
-    h = info->d_height;
-    src = info->s_pixels;
-    dst = info->d_pixels;
+    w = info->dst_w * info->dst->BytesPerPixel;
+    h = info->dst_h;
+    src = info->src;
+    dst = info->dst;
     skip = w + info->s_skip;
     if ((dst < src) || (dst >= (src + h * skip))) {
         SDL_BlitCopy(info);