diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2008-11-22 19:16:43 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2008-11-22 19:16:43 +0200 |
commit | 6cbca28085f1698bc7c6537631d5efbadf64abf1 (patch) | |
tree | 13a3ad21a732b168399ce9b34bbb0a57784dd54e /libvo/vo_xv.c | |
parent | 1715c2a33632b333f8e8e581ef23ea5fe0234edd (diff) | |
parent | a83e00009000c4907254daa141d491d0479e961d (diff) | |
download | mpv-6cbca28085f1698bc7c6537631d5efbadf64abf1.tar.bz2 mpv-6cbca28085f1698bc7c6537631d5efbadf64abf1.tar.xz |
Merge svn changes up to r27979
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r-- | libvo/vo_xv.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index 51afa2a693..f95ea82b53 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -182,7 +182,6 @@ static int config(struct vo *vo, uint32_t width, uint32_t height, struct MPOpts *opts = vo->opts; struct vo_x11_state *x11 = vo->x11; XVisualInfo vinfo; - XGCValues xgcv; XSetWindowAttributes xswa; XWindowAttributes attribs; unsigned long xswamask; @@ -202,8 +201,6 @@ static int config(struct vo *vo, uint32_t width, uint32_t height, return -1; } - x11->vo_mouse_autohide = 1; - ctx->is_paused = 0; ctx->visible_buf = -1; @@ -249,38 +246,10 @@ static int config(struct vo *vo, uint32_t width, uint32_t height, xswa.border_pixel = 0; xswamask = CWBackPixel | CWBorderPixel; - if (WinID >= 0) - { - x11->window = WinID ? ((Window) WinID) : x11->rootwin; - if (WinID) - { - XUnmapWindow(x11->display, x11->window); - XChangeWindowAttributes(x11->display, x11->window, xswamask, - &xswa); - vo_x11_selectinput_witherr(x11->display, x11->window, - StructureNotifyMask | - KeyPressMask | - PropertyChangeMask | - PointerMotionMask | - ButtonPressMask | - ButtonReleaseMask | - ExposureMask); - XMapWindow(x11->display, x11->window); - vo_x11_update_geometry(vo); - aspect_save_prescale(vo, vo->dwidth, vo->dheight); - } else - XSelectInput(x11->display, x11->window, ExposureMask); - } else - { vo_x11_create_vo_window(vo, &vinfo, vo->dx, vo->dy, vo->dwidth, vo->dheight, flags, CopyFromParent, "xv", title); XChangeWindowAttributes(x11->display, x11->window, xswamask, &xswa); - } - if (x11->vo_gc != None) - XFreeGC(x11->display, x11->vo_gc); - x11->vo_gc = XCreateGC(x11->display, x11->window, 0L, &xgcv); - XSync(x11->display, False); #ifdef CONFIG_XF86VM if (vm) { @@ -328,7 +297,6 @@ static int config(struct vo *vo, uint32_t width, uint32_t height, ctx->current_buf = 0; ctx->current_ip_buf = 0; - aspect(vo, &vo->dwidth, &vo->dheight, A_NOZOOM); if ((flags & VOFLAG_FULLSCREEN) && WinID <= 0) vo_fs = 1; calc_drwXY(vo, &ctx->drwX, &ctx->drwY); |