comparison libvo/vo_directx.c @ 33820:4c888b1d8cac

Use struct initializer in one more case.
author reimar
date Sun, 24 Jul 2011 19:52:46 +0000
parents 6451d20ff7c1
children 240ab28c7628
comparison
equal deleted inserted replaced
33819:6451d20ff7c1 33820:4c888b1d8cac
366 } 366 }
367 367
368 static uint32_t Directx_InitDirectDraw(void) 368 static uint32_t Directx_InitDirectDraw(void)
369 { 369 {
370 HRESULT (WINAPI *OurDirectDrawCreateEx)(GUID *, LPVOID *, REFIID, IUnknown FAR *); 370 HRESULT (WINAPI *OurDirectDrawCreateEx)(GUID *, LPVOID *, REFIID, IUnknown FAR *);
371 DDSURFACEDESC2 ddsd; 371 DDSURFACEDESC2 ddsd = {
372 .dwSize = sizeof(ddsd),
373 .dwFlags = DDSD_WIDTH | DDSD_HEIGHT | DDSD_PIXELFORMAT,
374 };
372 LPDIRECTDRAWENUMERATEEX OurDirectDrawEnumerateEx; 375 LPDIRECTDRAWENUMERATEEX OurDirectDrawEnumerateEx;
373 376
374 adapter_count = 0; 377 adapter_count = 0;
375 378
376 mp_msg(MSGT_VO, MSGL_DBG3, "<vo_directx><INFO>Initing DirectDraw\n"); 379 mp_msg(MSGT_VO, MSGL_DBG3, "<vo_directx><INFO>Initing DirectDraw\n");
414 mp_msg(MSGT_VO, MSGL_FATAL, "<vo_directx><FATAL ERROR>can't initialize ddraw\n"); 417 mp_msg(MSGT_VO, MSGL_FATAL, "<vo_directx><FATAL ERROR>can't initialize ddraw\n");
415 return 1; 418 return 1;
416 } 419 }
417 420
418 //get current screen siz for selected monitor ... 421 //get current screen siz for selected monitor ...
419 ddsd.dwSize = sizeof(ddsd);
420 ddsd.dwFlags = DDSD_WIDTH | DDSD_HEIGHT | DDSD_PIXELFORMAT;
421 g_lpdd->lpVtbl->GetDisplayMode(g_lpdd, &ddsd); 422 g_lpdd->lpVtbl->GetDisplayMode(g_lpdd, &ddsd);
422 if (vo_screenwidth && vo_screenheight) { 423 if (vo_screenwidth && vo_screenheight) {
423 vm_height = vo_screenheight; 424 vm_height = vo_screenheight;
424 vm_width = vo_screenwidth; 425 vm_width = vo_screenwidth;
425 } else { 426 } else {