summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r--video/out/x11_common.c9
1 files changed, 2 insertions, 7 deletions
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;