summaryrefslogtreecommitdiffstats
path: root/libvo/video_out.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-21 02:18:28 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-23 13:46:40 +0300
commit78172918ff4c7df7c9d1305dbfc48a8df409e470 (patch)
tree664cd8c4d580ed5e487ce03f0d5a89ad40965699 /libvo/video_out.c
parent432e8ff4a568b1040cae43df4aa6a602c86c6162 (diff)
downloadmpv-78172918ff4c7df7c9d1305dbfc48a8df409e470.tar.bz2
mpv-78172918ff4c7df7c9d1305dbfc48a8df409e470.tar.xz
Move vo_screenwidth,vo_screenheight to options struct
Diffstat (limited to 'libvo/video_out.c')
-rw-r--r--libvo/video_out.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/libvo/video_out.c b/libvo/video_out.c
index 7e3781020b..9b0ca48504 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -30,10 +30,6 @@ int xinerama_screen = -1;
int xinerama_x;
int xinerama_y;
-// currect resolution/bpp on screen: (should be autodetected by vo_init())
-int vo_screenwidth=0;
-int vo_screenheight=0;
-
int vo_nomouse_input = 0;
int vo_grabpointer = 1;
int vo_doublebuffering = 1;
@@ -353,16 +349,17 @@ int vo_config(struct vo *vo, uint32_t width, uint32_t height,
uint32_t d_width, uint32_t d_height, uint32_t flags,
char *title, uint32_t format)
{
+ struct MPOpts *opts = vo->opts;
panscan_init();
aspect_save_orig(width, height);
aspect_save_prescale(d_width, d_height);
if (vo_control(vo, VOCTRL_UPDATE_SCREENINFO, NULL) == VO_TRUE) {
aspect(&d_width, &d_height, A_NOZOOM);
- vo->dx = (int)(vo_screenwidth - d_width) / 2;
- vo->dy = (int)(vo_screenheight - d_height) / 2;
+ 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,
- vo_screenwidth, vo_screenheight);
+ opts->vo_screenwidth, opts->vo_screenheight);
vo->dx += xinerama_x;
vo->dy += xinerama_y;
vo->dwidth = d_width;