summaryrefslogtreecommitdiffstats
path: root/libvo/video_out.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-05-01 11:02:26 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-05-01 11:02:26 +0300
commitc172b5355f2a0fa008fd5187ce323fb9676871b3 (patch)
treeed2b3dbfdbaa3f30fe1dda413df1b8f0eac32aa3 /libvo/video_out.c
parent91b3d6a95568eec8a927e488c103e5ba1136e021 (diff)
downloadmpv-c172b5355f2a0fa008fd5187ce323fb9676871b3.tar.bz2
mpv-c172b5355f2a0fa008fd5187ce323fb9676871b3.tar.xz
libvo: Move aspect.c static variables to vo struct
This moves non-option variables. aspect.c still defines option globals.
Diffstat (limited to 'libvo/video_out.c')
-rw-r--r--libvo/video_out.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libvo/video_out.c b/libvo/video_out.c
index 42354c5f34..f3be8d174d 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -356,12 +356,12 @@ int vo_config(struct vo *vo, uint32_t width, uint32_t height,
char *title, uint32_t format)
{
struct MPOpts *opts = vo->opts;
- panscan_init();
- aspect_save_orig(width, height);
- aspect_save_prescale(d_width, d_height);
+ panscan_init(vo);
+ aspect_save_orig(vo, width, height);
+ aspect_save_prescale(vo, d_width, d_height);
if (vo_control(vo, VOCTRL_UPDATE_SCREENINFO, NULL) == VO_TRUE) {
- aspect(&d_width, &d_height, A_NOZOOM);
+ aspect(vo, &d_width, &d_height, A_NOZOOM);
vo->dx = (int)(opts->vo_screenwidth - d_width) / 2;
vo->dy = (int)(opts->vo_screenheight - d_height) / 2;
geometry(&vo->dx, &vo->dy, &d_width, &d_height,