[Mplayer-cvslog] CVS: main/libvo geometry.c,1.5,1.6
Attila Kinali CVS
attila at mplayerhq.hu
Sat Jan 4 14:12:16 CET 2003
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;
}
More information about the MPlayer-cvslog
mailing list