summaryrefslogtreecommitdiff
path: root/src/xine-engine/vo_scale.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2004-10-26 20:10:20 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2004-10-26 20:10:20 +0000
commitebdf7c59eee588633416888dabb0164f671797ef (patch)
tree90033d3695c1cc4fbca2bbe55a506b90fcc3377a /src/xine-engine/vo_scale.c
parent48bf362ba64bfbb5aa06d97300380587803b08c6 (diff)
downloadxine-lib-ebdf7c59eee588633416888dabb0164f671797ef.tar.gz
xine-lib-ebdf7c59eee588633416888dabb0164f671797ef.tar.bz2
add frontend cropping support
CVS patchset: 7076 CVS date: 2004/10/26 20:10:20
Diffstat (limited to 'src/xine-engine/vo_scale.c')
-rw-r--r--src/xine-engine/vo_scale.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xine-engine/vo_scale.c b/src/xine-engine/vo_scale.c
index 0f522ea1d..a93c0c08e 100644
--- a/src/xine-engine/vo_scale.c
+++ b/src/xine-engine/vo_scale.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: vo_scale.c,v 1.34 2004/10/09 06:44:52 mroi Exp $
+ * $Id: vo_scale.c,v 1.35 2004/10/26 20:10:25 miguelfreitas Exp $
*
* Contains common code to calculate video scaling parameters.
* In short, it will map frame dimensions to screen/window size.
@@ -56,8 +56,12 @@ void _x_vo_scale_compute_ideal_size (vo_scale_t *this) {
* aspect ratio
*/
+ /*
image_ratio = (double) (this->delivered_width - (this->crop_left + this->crop_right)) /
(double) (this->delivered_height - (this->crop_top + this->crop_bottom));
+ */
+ image_ratio = (double) (this->delivered_width) /
+ (double) (this->delivered_height);
switch (this->user_ratio) {
case XINE_VO_ASPECT_AUTO: