# HG changeset patch # User reimar # Date 1286630965 0 # Node ID 5471c2bb7a2bd8bc98335eaf31044068b3256801 # Parent 150df72e808f25a8fef1c2e2137ebaf7585c2c1a Remov gui-specific code, the way teh GUI works was changed so most of those special-case hacks will actually break things. diff -r 150df72e808f -r 5471c2bb7a2b libvo/vo_dxr3.c --- 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;