[Mplayer-cvslog] CVS: main/libvo geometry.c,1.5,1.6

Arpi arpi at thot.banki.hu
Sat Jan 4 15:30:16 CET 2003


Hi,

argh

what's the sense of this commit?

> Update of /cvsroot/mplayer/main/libvo
> In directory mail:/var/tmp.root/cvs-serv20543
> 
> Modified Files:
> 	geometry.c 
> Log Message:
> cosmetics
> 
> 
> Index: geometry.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/libvo/geometry.c,v
> retrieving revision 1.5
> retrieving revision 1.6
> diff -u -r1.5 -r1.6
> --- geometry.c	4 Jan 2003 13:11:18 -0000	1.5
> +++ geometry.c	4 Jan 2003 13:12:13 -0000	1.6
> @@ -36,19 +36,19 @@
>  		   sscanf(vo_geometry, "%i%%", &xper) != 1)
>  			return geometry_error();
>  
> -	if(xper >= 0 && xper <= 100) xoff = (scrw - vidw) * ((float)xper / 100.0);
> -	if(yper >= 0 && yper <= 100) yoff = (scrh - vidh) * ((float)yper / 100.0);
> +		if(xper >= 0 && xper <= 100) xoff = (scrw - vidw) * ((float)xper / 100.0);
> +		if(yper >= 0 && yper <= 100) yoff = (scrh - vidh) * ((float)yper / 100.0);
>  
> -	/* FIXME: better checking of bounds... */
> -	if(width < 0 || width > scrw) width = vidw;
> -	if(height < 0 || height > scrh) height = vidh;
> -	if(xoff < 0 || xoff + vidw > scrw) xoff = 0;
> -	if(yoff < 0 || yoff + vidh > scrh) yoff = 0;
> +		/* FIXME: better checking of bounds... */
> +		if(width < 0 || width > scrw) width = vidw;
> +		if(height < 0 || height > scrh) height = vidh;
> +		if(xoff < 0 || xoff + vidw > scrw) xoff = 0;
> +		if(yoff < 0 || yoff + vidh > scrh) yoff = 0;
>  
> -	if(xpos) *xpos = xoff;
> -	if(ypos) *ypos = yoff;
> -	if(pwidth) *pwidth = width;
> -	if(pheight) *pheight = height;
> +		if(xpos) *xpos = xoff;
> +		if(ypos) *ypos = yoff;
> +		if(pwidth) *pwidth = width;
> +		if(pheight) *pheight = height;
>          }
>  	return 1;
>  }
> 
> _______________________________________________
> Mplayer-cvslog mailing list
> Mplayer-cvslog at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-cvslog
> 
> 


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu


More information about the MPlayer-cvslog mailing list