src/video/quartz/SDL_QuartzYUV.m
changeset 1648 9f59d4c5aaea
parent 1541 157001382dfd
child 1659 14717b52abc0
--- a/src/video/quartz/SDL_QuartzYUV.m	Thu Apr 20 16:33:51 2006 +0000
+++ b/src/video/quartz/SDL_QuartzYUV.m	Sat Apr 22 19:17:14 2006 +0000
@@ -47,31 +47,31 @@
     ;
 }
 
-static int QZ_DisplayYUV (_THIS, SDL_Overlay *overlay, SDL_Rect *dstrect) {
+static int QZ_DisplayYUV (_THIS, SDL_Overlay *overlay, SDL_Rect *src, SDL_Rect *dst) {
 
     OSErr err;
     CodecFlags flags;
 
-    if (dstrect->x != 0 || dstrect->y != 0) {
+    if (dst->x != 0 || dst->y != 0) {
 
-        SDL_SetError ("Need a dstrect at (0,0)");
+        SDL_SetError ("Need a dst at (0,0)");
         return -1;
     }
 
-    if (dstrect->w != yuv_width || dstrect->h != yuv_height) {
+    if (dst->w != yuv_width || dst->h != yuv_height) {
 
         Fixed scale_x, scale_y;
 
-        scale_x = FixDiv ( Long2Fix (dstrect->w), Long2Fix (overlay->w) );
-        scale_y = FixDiv ( Long2Fix (dstrect->h), Long2Fix (overlay->h) );
+        scale_x = FixDiv ( Long2Fix (dst->w), Long2Fix (overlay->w) );
+        scale_y = FixDiv ( Long2Fix (dst->h), Long2Fix (overlay->h) );
 
         SetIdentityMatrix (yuv_matrix);
         ScaleMatrix (yuv_matrix, scale_x, scale_y, Long2Fix (0), Long2Fix (0));
 
         SetDSequenceMatrix (yuv_seq, yuv_matrix);
 
-        yuv_width = dstrect->w;
-        yuv_height = dstrect->h;
+        yuv_width = dst->w;
+        yuv_height = dst->h;
     }
 
     if( ( err = DecompressSequenceFrameS(