diff options
author | Robin KAY <komadori@users.sourceforge.net> | 2003-10-04 11:46:01 +0000 |
---|---|---|
committer | Robin KAY <komadori@users.sourceforge.net> | 2003-10-04 11:46:01 +0000 |
commit | 9327936ad79a1dd588dd41310186594f5e13989e (patch) | |
tree | ce902ce5a1e2c540e643ae88a04adab75ee39046 | |
parent | b1aa37ce6ecf5d7d41a26008ef5dfce6bf720437 (diff) | |
download | xine-lib-9327936ad79a1dd588dd41310186594f5e13989e.tar.gz xine-lib-9327936ad79a1dd588dd41310186594f5e13989e.tar.bz2 |
Fix scaling by the wrong factor.
CVS patchset: 5433
CVS date: 2003/10/04 11:46:01
-rw-r--r-- | src/xine-engine/vo_scale.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xine-engine/vo_scale.c b/src/xine-engine/vo_scale.c index ba1a0d0a1..dc06e93e3 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.23 2003/08/12 13:54:21 mroi Exp $ + * $Id: vo_scale.c,v 1.24 2003/10/04 11:46:01 komadori Exp $ * * Contains common code to calculate video scaling parameters. * In short, it will map frame dimensions to screen/window size. @@ -128,7 +128,7 @@ void vo_scale_compute_output_size (vo_scale_t *this) { * black borders to use. * - exceding zoom shall be accounted by reducing displayed image. */ - if ( x_factor <= (y_factor - (this->video_pixel_aspect - 1.0)) ) { + if (((double)this->gui_width - (double)this->delivered_width * y_factor) < ((double)this->gui_height - (double)this->delivered_height * x_factor)) { this->output_width = this->gui_width; this->displayed_width = (double)this->delivered_width / this->zoom_factor_x + 0.5; @@ -157,7 +157,7 @@ void vo_scale_compute_output_size (vo_scale_t *this) { } } else { - if(x_factor < (y_factor - (this->video_pixel_aspect - 1.0))) { + if (((double)this->gui_width - (double)this->delivered_width * y_factor) < ((double)this->gui_height - (double)this->delivered_height * x_factor)) { this->output_width = (double) this->gui_width; this->output_height = (double) this->delivered_height * x_factor + 0.5; } else { |