[Mplayer-cvslog] CVS: main/libvo vo_gl2.c,1.37,1.38
Felix Buenemann
atmosfear at users.sourceforge.net
Sun Oct 12 18:56:00 CEST 2003
On Sunday 12 October 2003 16:43, Attila Kinali wrote:
> 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.
Did you try enabling aspect debug to see what's going on (see the define in
aspect.c)
> Attila Kinali
--
Best Regards,
Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________
More information about the MPlayer-cvslog
mailing list