From 26108aa19a86130436fc78866ecb465128b2b210 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 9 Oct 2010 13:31:03 +0000 Subject: [PATCH] vo_dxr3: Fix indentation git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32466 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_dxr3.c | 37 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/libvo/vo_dxr3.c b/libvo/vo_dxr3.c index 240d369f83..41e1dcfd4e 100644 --- a/libvo/vo_dxr3.c +++ b/libvo/vo_dxr3.c @@ -477,21 +477,19 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_ vo_dy = (vo_screenheight - d_height) / 2; vo_dwidth = d_width; vo_dheight = d_height; - { - 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); - vo_x11_create_vo_window(&vinfo, vo_dx, vo_dy, - d_width, d_height, flags, - CopyFromParent, "Viewing Window", title); - xswa.background_pixel = KEY_COLOR; - xswa.border_pixel = 0; - xswamask = CWBackPixel | CWBorderPixel; - XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa); + 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); + vo_x11_create_vo_window(&vinfo, vo_dx, vo_dy, + d_width, d_height, flags, + CopyFromParent, "Viewing Window", title); + xswa.background_pixel = KEY_COLOR; + xswa.border_pixel = 0; + xswamask = CWBackPixel | CWBorderPixel; + XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa); /* Start setting up overlay */ XGetWindowAttributes(mDisplay, mRootWin, &xwin_attribs); @@ -675,8 +673,7 @@ static void uninit(void) overlay_set_mode(overlay_data, EM8300_OVERLAY_MODE_OFF); overlay_release(overlay_data); - vo_x11_uninit(); - + vo_x11_uninit(); } #endif if (old_vmode != -1) { @@ -851,10 +848,10 @@ static int preinit(const char *arg) /* Initialize overlay and X11 */ overlay_data = overlay_init(fd_control); - if (!vo_init()) { - mp_tmsg(MSGT_VO,MSGL_ERR, "[VO_DXR3] Unable to init X11!\n"); - return -1; - } + if (!vo_init()) { + mp_tmsg(MSGT_VO,MSGL_ERR, "[VO_DXR3] Unable to init X11!\n"); + return -1; + } } #endif