Mercurial > mplayer.hg
changeset 32379:5471c2bb7a2b
Remov gui-specific code, the way teh GUI works was changed so most
of those special-case hacks will actually break things.
author | reimar |
---|---|
date | Sat, 09 Oct 2010 13:29:25 +0000 |
parents | 150df72e808f |
children | c2370492acbc |
files | libvo/vo_dxr3.c |
diffstat | 1 files changed, 1 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_dxr3.c Sat Oct 09 12:12:14 2010 +0000 +++ b/libvo/vo_dxr3.c Sat Oct 09 13:29:25 2010 +0000 @@ -499,19 +499,9 @@ vo_dwidth = d_width; vo_dheight = d_height; #ifdef CONFIG_GUI - if (use_gui) { + if (use_gui) guiGetEvent(guiSetShVideo, 0); - XSetWindowBackground(mDisplay, vo_window, KEY_COLOR); - XClearWindow(mDisplay, vo_window); - XGetWindowAttributes(mDisplay, DefaultRootWindow(mDisplay), &xwin_attribs); - depth = xwin_attribs.depth; - if (depth != 15 && depth != 16 && depth != 24 && depth != 32) { - depth = 24; - } - XMatchVisualInfo(mDisplay, mScreen, depth, TrueColor, &vinfo); - } else #endif - { XGetWindowAttributes(mDisplay, DefaultRootWindow(mDisplay), &xwin_attribs); depth = xwin_attribs.depth; if (depth != 15 && depth != 16 && depth != 24 && depth != 32) { @@ -525,7 +515,6 @@ xswa.border_pixel = 0; xswamask = CWBackPixel | CWBorderPixel; XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa); - } /* Start setting up overlay */ XGetWindowAttributes(mDisplay, mRootWin, &xwin_attribs); @@ -707,9 +696,6 @@ overlay_set_mode(overlay_data, EM8300_OVERLAY_MODE_OFF); overlay_release(overlay_data); -#ifdef CONFIG_GUI - if (!use_gui) -#endif vo_x11_uninit(); } #endif @@ -885,9 +871,6 @@ /* Initialize overlay and X11 */ overlay_data = overlay_init(fd_control); -#ifdef CONFIG_GUI - if (!use_gui) -#endif if (!vo_init()) { mp_msg(MSGT_VO,MSGL_ERR, MSGTR_LIBVO_DXR3_UnableToInitX11); return -1;