summaryrefslogtreecommitdiff
path: root/src/xine-engine/vo_scale.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-08-16 21:10:02 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-08-16 21:10:02 +0000
commit1ea4db56951b30cb6fda2957e43c02e017afa285 (patch)
treeac6fb24093b3435c7a73f9bc3d75ab2514ed4798 /src/xine-engine/vo_scale.c
parent037547408f2f7bf2a70fa3b5aaf85403c7b3e9d4 (diff)
downloadxine-lib-1ea4db56951b30cb6fda2957e43c02e017afa285.tar.gz
xine-lib-1ea4db56951b30cb6fda2957e43c02e017afa285.tar.bz2
- simplify sdl video driver with scaling helper
- bugfixes CVS patchset: 2464 CVS date: 2002/08/16 21:10:02
Diffstat (limited to 'src/xine-engine/vo_scale.c')
-rw-r--r--src/xine-engine/vo_scale.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xine-engine/vo_scale.c b/src/xine-engine/vo_scale.c
index 40639c9aa..592dc0d77 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.1 2002/08/15 03:12:27 miguelfreitas Exp $
+ * $Id: vo_scale.c,v 1.2 2002/08/16 21:10:02 miguelfreitas Exp $
*
* Contains common code to calculate video scaling parameters.
* In short, it will map frame dimensions to screen/window size.
@@ -285,10 +285,9 @@ void vo_scale_translate_gui2video(vo_scale_t *this,
* translate output area coordianates into the delivered area
* coordiantes.
*/
- x = x * this->delivered_width / this->output_width;
- y = y * this->delivered_height / this->output_height;
-
- /* FIXME: not that trivial, must take zoom into account */
+
+ x = x * this->displayed_width / this->output_width + this->displayed_xoffset;
+ y = y * this->displayed_height / this->output_height + this->displayed_yoffset;
}
*vid_x = x;
@@ -332,5 +331,6 @@ void vo_scale_init(vo_scale_t *this, double display_ratio,
this->force_redraw = 1;
this->zoom_factor_x = 1.0;
this->zoom_factor_y = 1.0;
+ this->user_ratio = ASPECT_AUTO;
}