changeset 5368:fdb92215a1fc

Fix resizing when zoom is used and image size changes between frames.
author atmos4
date Wed, 27 Mar 2002 04:16:38 +0000
parents 658ea5d7316a
children 2d678eeb3d42
files libvo/vo_x11.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_x11.c	Wed Mar 27 03:45:55 2002 +0000
+++ b/libvo/vo_x11.c	Wed Mar 27 04:16:38 2002 +0000
@@ -392,9 +392,8 @@
    	default:  draw_alpha_fnc=draw_alpha_null;
   }
 
-  /* we avoid unnecessary allocating the swsContext here as it is allocated during draw_slice if zoom is on */
-  if(!zoomFlag)
-	swsContext= getSwsContextFromCmdLine(width, height, in_format, width, height, out_format );
+  /* always allocate swsContext as size could change between frames */
+  swsContext= getSwsContextFromCmdLine(width, height, in_format, width, height, out_format );
 
 //  printf( "X11 color mask:  R:%lX  G:%lX  B:%lX\n",myximage->red_mask,myximage->green_mask,myximage->blue_mask );