Mercurial > mplayer.hg
changeset 32524:4bfaa9fc1c16
Some indentation fixes.
author | reimar |
---|---|
date | Tue, 09 Nov 2010 22:11:08 +0000 |
parents | 42ab538db6b0 |
children | 11b0a82d018c |
files | libvo/w32_common.c |
diffstat | 1 files changed, 16 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/w32_common.c Mon Nov 08 21:46:37 2010 +0000 +++ b/libvo/w32_common.c Tue Nov 09 22:11:08 2010 +0000 @@ -107,17 +107,17 @@ break; case WM_WINDOWPOSCHANGING: if (vo_keepaspect && !vo_fs && WinID < 0) { - WINDOWPOS *wpos = lParam; - int xborder, yborder; - r.left = r.top = 0; - r.right = wpos->cx; - r.bottom = wpos->cy; - AdjustWindowRect(&r, GetWindowLong(vo_window, GWL_STYLE), 0); - xborder = (r.right - r.left) - wpos->cx; - yborder = (r.bottom - r.top) - wpos->cy; - wpos->cx -= xborder; wpos->cy -= yborder; - aspect_fit(&wpos->cx, &wpos->cy, wpos->cx, wpos->cy); - wpos->cx += xborder; wpos->cy += yborder; + WINDOWPOS *wpos = lParam; + int xborder, yborder; + r.left = r.top = 0; + r.right = wpos->cx; + r.bottom = wpos->cy; + AdjustWindowRect(&r, GetWindowLong(vo_window, GWL_STYLE), 0); + xborder = (r.right - r.left) - wpos->cx; + yborder = (r.bottom - r.top) - wpos->cy; + wpos->cx -= xborder; wpos->cy -= yborder; + aspect_fit(&wpos->cx, &wpos->cy, wpos->cx, wpos->cy); + wpos->cx += xborder; wpos->cy += yborder; } return 0; case WM_CLOSE: @@ -315,7 +315,7 @@ if (bestMode != -1) EnumDisplaySettings(0, bestMode, &dm); - ChangeDisplaySettings(&dm, CDS_FULLSCREEN); + ChangeDisplaySettings(&dm, CDS_FULLSCREEN); } } @@ -476,9 +476,9 @@ 0, 0, vo_dwidth, vo_dheight, WinID, 0, hInstance, 0); EnableWindow(vo_window, 0); } else - vo_window = CreateWindowEx(0, classname, classname, - vo_border ? (WS_OVERLAPPEDWINDOW | WS_SIZEBOX) : WS_POPUP, - CW_USEDEFAULT, 0, 100, 100, 0, 0, hInstance, 0); + vo_window = CreateWindowEx(0, classname, classname, + vo_border ? (WS_OVERLAPPEDWINDOW | WS_SIZEBOX) : WS_POPUP, + CW_USEDEFAULT, 0, 100, 100, 0, 0, hInstance, 0); if (!vo_window) { mp_msg(MSGT_VO, MSGL_ERR, "vo: win32: unable to create window!\n"); return 0; @@ -509,7 +509,7 @@ pfd.iLayerType = PFD_MAIN_PLANE; pf = ChoosePixelFormat(vo_hdc, &pfd); if (!pf) { - mp_msg(MSGT_VO, MSGL_ERR, "vo: win32: unable to select a valid pixel format!\n"); + mp_msg(MSGT_VO, MSGL_ERR, "vo: win32: unable to select a valid pixel format!\n"); vo_w32_release_dc(vo_window, vo_hdc); return 0; }