changeset 5313:0b7229832d2a

Two fixes: - Planar formats don't use draw_frame. Code dealing with that has been removed. - Calculate y_screen_bottom correctly
author ksorim
date Sun, 24 Mar 2002 18:42:27 +0000
parents 211c0f1ec065
children ba5c92e64c5d
files libvo/vo_sdl.c
diffstat 1 files changed, 2 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_sdl.c	Sun Mar 24 18:42:05 2002 +0000
+++ b/libvo/vo_sdl.c	Sun Mar 24 18:42:27 2002 +0000
@@ -921,7 +921,7 @@
     /* Place the image in the middle of the screen */
     priv->y = (surfheight - priv->height) / 2;
     priv->y_screen_top = priv->y * v_scale;
-    priv->y_screen_bottom = (priv->y + priv->dstheight) * v_scale;
+    priv->y_screen_bottom = priv->y_screen_top + priv->dstheight;
 
     priv->dirty_off_frame[0].x = -1;
     priv->dirty_off_frame[0].y = -1;
@@ -1033,22 +1033,7 @@
 	int i;
 	uint8_t *mysrc = src[0];
 
-        switch(priv->format){
-        case IMGFMT_YV12:
-        case IMGFMT_I420:
-        case IMGFMT_IYUV:
-        SDL_OVR_LOCK(-1)
-            
-        dst = priv->overlay->pixels[0] + priv->y*priv->overlay->pitches[0];
-        memcpy(dst, src[0], priv->overlay->pitches[0]*priv->overlay->h);
-        dst = priv->overlay->pixels[1] + priv->y*priv->overlay->pitches[1]/2;
-        memcpy(dst, src[1], priv->overlay->pitches[1]*priv->overlay->h/2);
-        dst = priv->overlay->pixels[2] + priv->y*priv->overlay->pitches[2]/2;
-        memcpy(dst, src[2], priv->overlay->pitches[2]*priv->overlay->h/2);
-        
-	    SDL_OVR_UNLOCK
-            break;
-
+    switch(priv->format){
         case IMGFMT_YUY2:
         case IMGFMT_UYVY:
         case IMGFMT_YVYU: