Mercurial > mplayer.hg
comparison libvo/vo_directx.c @ 29212:eda346733b8c
Add missing 'void' to parameterless function declarations.
author | diego |
---|---|
date | Mon, 04 May 2009 17:35:26 +0000 |
parents | 2a6dfdf16b6b |
children | 0f1b5b68af32 |
comparison
equal
deleted
inserted
replaced
29211:f9023fbd672a | 29212:eda346733b8c |
---|---|
198 i++; | 198 i++; |
199 } | 199 } |
200 return 0; | 200 return 0; |
201 } | 201 } |
202 | 202 |
203 static uint32_t Directx_CreatePrimarySurface() | 203 static uint32_t Directx_CreatePrimarySurface(void) |
204 { | 204 { |
205 DDSURFACEDESC2 ddsd; | 205 DDSURFACEDESC2 ddsd; |
206 //cleanup | 206 //cleanup |
207 if(g_lpddsPrimary)g_lpddsPrimary->lpVtbl->Release(g_lpddsPrimary); | 207 if(g_lpddsPrimary)g_lpddsPrimary->lpVtbl->Release(g_lpddsPrimary); |
208 g_lpddsPrimary=NULL; | 208 g_lpddsPrimary=NULL; |
308 } | 308 } |
309 g_lpddsBack = g_lpddsOverlay; | 309 g_lpddsBack = g_lpddsOverlay; |
310 return 0; | 310 return 0; |
311 } | 311 } |
312 | 312 |
313 static uint32_t Directx_CreateBackpuffer() | 313 static uint32_t Directx_CreateBackpuffer(void) |
314 { | 314 { |
315 DDSURFACEDESC2 ddsd; | 315 DDSURFACEDESC2 ddsd; |
316 //cleanup | 316 //cleanup |
317 if (g_lpddsBack)g_lpddsBack->lpVtbl->Release(g_lpddsBack); | 317 if (g_lpddsBack)g_lpddsBack->lpVtbl->Release(g_lpddsBack); |
318 g_lpddsBack=NULL; | 318 g_lpddsBack=NULL; |
414 adapter_count++; | 414 adapter_count++; |
415 | 415 |
416 return 1; // list all adapters | 416 return 1; // list all adapters |
417 } | 417 } |
418 | 418 |
419 static uint32_t Directx_InitDirectDraw() | 419 static uint32_t Directx_InitDirectDraw(void) |
420 { | 420 { |
421 HRESULT (WINAPI *OurDirectDrawCreateEx)(GUID *,LPVOID *, REFIID,IUnknown FAR *); | 421 HRESULT (WINAPI *OurDirectDrawCreateEx)(GUID *,LPVOID *, REFIID,IUnknown FAR *); |
422 DDSURFACEDESC2 ddsd; | 422 DDSURFACEDESC2 ddsd; |
423 LPDIRECTDRAWENUMERATEEX OurDirectDrawEnumerateEx; | 423 LPDIRECTDRAWENUMERATEEX OurDirectDrawEnumerateEx; |
424 HINSTANCE user32dll=LoadLibrary("user32.dll"); | 424 HINSTANCE user32dll=LoadLibrary("user32.dll"); |
531 TranslateMessage(&msg); | 531 TranslateMessage(&msg); |
532 DispatchMessage(&msg); | 532 DispatchMessage(&msg); |
533 } | 533 } |
534 } | 534 } |
535 | 535 |
536 static uint32_t Directx_ManageDisplay() | 536 static uint32_t Directx_ManageDisplay(void) |
537 { | 537 { |
538 HRESULT ddrval; | 538 HRESULT ddrval; |
539 DDCAPS capsDrv; | 539 DDCAPS capsDrv; |
540 DDOVERLAYFX ovfx; | 540 DDOVERLAYFX ovfx; |
541 DWORD dwUpdateFlags=0; | 541 DWORD dwUpdateFlags=0; |
761 } | 761 } |
762 return 0; | 762 return 0; |
763 } | 763 } |
764 | 764 |
765 //find out supported overlay pixelformats | 765 //find out supported overlay pixelformats |
766 static uint32_t Directx_CheckOverlayPixelformats() | 766 static uint32_t Directx_CheckOverlayPixelformats(void) |
767 { | 767 { |
768 DDCAPS capsDrv; | 768 DDCAPS capsDrv; |
769 HRESULT ddrval; | 769 HRESULT ddrval; |
770 DDSURFACEDESC2 ddsdOverlay; | 770 DDSURFACEDESC2 ddsdOverlay; |
771 uint32_t i; | 771 uint32_t i; |
822 if(capsDrv.dwFXCaps & DDFXCAPS_OVERLAYMIRRORUPDOWN )mp_msg(MSGT_VO, MSGL_V ,"<vo_directx><INFO>can mirror up down\n"); //supports those send me one and I'll implement ;) | 822 if(capsDrv.dwFXCaps & DDFXCAPS_OVERLAYMIRRORUPDOWN )mp_msg(MSGT_VO, MSGL_V ,"<vo_directx><INFO>can mirror up down\n"); //supports those send me one and I'll implement ;) |
823 return 0; | 823 return 0; |
824 } | 824 } |
825 | 825 |
826 //find out the Pixelformat of the Primary Surface | 826 //find out the Pixelformat of the Primary Surface |
827 static uint32_t Directx_CheckPrimaryPixelformat() | 827 static uint32_t Directx_CheckPrimaryPixelformat(void) |
828 { | 828 { |
829 uint32_t i=0; | 829 uint32_t i=0; |
830 uint32_t formatcount = 0; | 830 uint32_t formatcount = 0; |
831 DDPIXELFORMAT ddpf; | 831 DDPIXELFORMAT ddpf; |
832 DDSURFACEDESC2 ddsd; | 832 DDSURFACEDESC2 ddsd; |