From ad654f38036e53abbc902ffc5aae13fca61129e0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 11 Jan 2014 18:57:02 +0100 Subject: options: remove --screenw and --screenh Doesn't make any sense anymore. X11 (which was mentioned in the manpage) autodetects it, and everything else ignored the option values. Since for incomprehensible reasons the backends and vo.c still need to exchange information about the screensize using the option fields, they're not removed yet. --- video/out/x11_common.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'video') diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 5fa0c54d23..4498dd34dd 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -524,13 +524,8 @@ int vo_x11_init(struct vo *vo) init_atoms(vo->x11); - x11->ws_width = opts->screenwidth; - x11->ws_height = opts->screenheight; - - if (!x11->ws_width) - x11->ws_width = DisplayWidth(x11->display, x11->screen); - if (!x11->ws_height) - x11->ws_height = DisplayHeight(x11->display, x11->screen); + x11->ws_width = DisplayWidth(x11->display, x11->screen); + x11->ws_height = DisplayHeight(x11->display, x11->screen); opts->screenwidth = x11->ws_width; opts->screenheight = x11->ws_height; -- cgit v1.2.3