[MPlayer-cvslog] r32611 - trunk/libvo/w32_common.c

reimar subversion at mplayerhq.hu
Tue Nov 9 23:11:08 CET 2010


Author: reimar
Date: Tue Nov  9 23:11:08 2010
New Revision: 32611

Log:
Some indentation fixes.

Modified:
   trunk/libvo/w32_common.c

Modified: trunk/libvo/w32_common.c
==============================================================================
--- trunk/libvo/w32_common.c	Mon Nov  8 22:46:37 2010	(r32610)
+++ trunk/libvo/w32_common.c	Tue Nov  9 23:11:08 2010	(r32611)
@@ -107,17 +107,17 @@ static LRESULT CALLBACK WndProc(HWND hWn
             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 @@ static void changeMode(void) {
         if (bestMode != -1)
             EnumDisplaySettings(0, bestMode, &dm);
 
-    ChangeDisplaySettings(&dm, CDS_FULLSCREEN);
+        ChangeDisplaySettings(&dm, CDS_FULLSCREEN);
     }
 }
 
@@ -476,9 +476,9 @@ int vo_w32_init(void) {
                      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 @@ int vo_w32_init(void) {
     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;
     }


More information about the MPlayer-cvslog mailing list