[MPlayer-cvslog] r33908 - trunk/libvo/vo_directx.c

reimar subversion at mplayerhq.hu
Sun Jul 24 21:52:46 CEST 2011


Author: reimar
Date: Sun Jul 24 21:52:46 2011
New Revision: 33908

Log:
Use struct initializer in one more case.

Modified:
   trunk/libvo/vo_directx.c

Modified: trunk/libvo/vo_directx.c
==============================================================================
--- trunk/libvo/vo_directx.c	Sun Jul 24 21:43:47 2011	(r33907)
+++ trunk/libvo/vo_directx.c	Sun Jul 24 21:52:46 2011	(r33908)
@@ -368,7 +368,10 @@ static BOOL WINAPI EnumCallbackEx(GUID F
 static uint32_t Directx_InitDirectDraw(void)
 {
     HRESULT (WINAPI *OurDirectDrawCreateEx)(GUID *, LPVOID *, REFIID, IUnknown FAR *);
-    DDSURFACEDESC2 ddsd;
+    DDSURFACEDESC2 ddsd = {
+        .dwSize  = sizeof(ddsd),
+        .dwFlags = DDSD_WIDTH | DDSD_HEIGHT | DDSD_PIXELFORMAT,
+    };
     LPDIRECTDRAWENUMERATEEX OurDirectDrawEnumerateEx;
 
     adapter_count = 0;
@@ -416,8 +419,6 @@ static uint32_t Directx_InitDirectDraw(v
     }
 
     //get current screen siz for selected monitor ...
-    ddsd.dwSize  = sizeof(ddsd);
-    ddsd.dwFlags = DDSD_WIDTH | DDSD_HEIGHT | DDSD_PIXELFORMAT;
     g_lpdd->lpVtbl->GetDisplayMode(g_lpdd, &ddsd);
     if (vo_screenwidth && vo_screenheight) {
         vm_height = vo_screenheight;


More information about the MPlayer-cvslog mailing list