[Mplayer-cvslog] CVS: main/libvo vo_gl2.c,1.37,1.38

Attila Kinali kinali at gmx.net
Sun Oct 12 16:43:40 CEST 2003


On Sun, 12 Oct 2003 16:43:00 +0200
Attila Kinali CVS <attila at mplayerhq.hu> wrote:

> @@ -562,15 +563,16 @@
>  }
>  
>  
> -static void resize(int x,int y){
> -  printf("[gl2] Resize: %dx%d\n",x,y);
> +static void resize(int *x,int *y){
> +  mp_msg(MSGT_VO,MSGL_V,"[gl2] Resize: %dx%d\n",*x,*y);
>    if( vo_fs )
>    {
> -	  aspect(&x, &y, A_ZOOM);
> -	  glViewport( (vo_screenwidth-x)/2, (vo_screenheight-y)/2, x, y);
> +	  glClear(GL_COLOR_BUFFER_BIT);
> +	  aspect(x, y, A_ZOOM);
> +	  glViewport( (vo_screenwidth-*x)/2, (vo_screenheight-*y)/2, *x, *y);
>    } else { 
> -	  aspect(&x, &y, A_NOZOOM);
> -	  glViewport( 0, 0, x, y );
> +	  //aspect(x, y, A_NOZOOM);
> +	  glViewport( 0, 0, *x, *y );
>    }

Can someone tell me what's wrong with this call of aspect() ?
If i leave it there, the image isn't resized with the window
but stays in the lower left corner.

			Attila Kinali

-- 
egp ist vergleichbar mit einem ikea bausatz fuer flugzeugtraeger
			-- reeler in +kaosu



More information about the MPlayer-cvslog mailing list