mirror of
https://github.com/mpv-player/mpv
synced 2025-01-31 04:02:06 +00:00
10l remove unused code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8669 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b5c093dbe4
commit
c22eec6052
@ -287,18 +287,6 @@ static uint32_t Directx_CreateBackpuffer()
|
||||
return 0;
|
||||
}
|
||||
|
||||
//create clipper for nonoverlay mode
|
||||
static uint32_t Directx_CreateClipper()
|
||||
{
|
||||
if(g_lpddclipper)g_lpddclipper->lpVtbl->Release(g_lpddclipper);
|
||||
g_lpddclipper=NULL;
|
||||
if(g_lpdd->lpVtbl->CreateClipper(g_lpdd, 0, &g_lpddclipper,NULL)!= DD_OK){mp_msg(MSGT_VO, MSGL_FATAL,"<vo_directx><FATAL ERROR>can't create clipper\n");return 1;}
|
||||
if(g_lpddclipper->lpVtbl->SetHWnd (g_lpddclipper, 0, hWnd)!= DD_OK){mp_msg(MSGT_VO, MSGL_FATAL,"<vo_directx><FATAL ERROR>can't associate clipper with window\n");return 1;}
|
||||
if(g_lpddsPrimary->lpVtbl->SetClipper (g_lpddsPrimary,g_lpddclipper)!=DD_OK){mp_msg(MSGT_VO, MSGL_FATAL,"<vo_directx><FATAL ERROR>can't associate primary surface with clipper\n");return 1;}
|
||||
mp_msg(MSGT_VO, MSGL_DBG3,"<vo_directx><INFO>clipper succesfully created\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void uninit(void)
|
||||
{
|
||||
if (g_lpddclipper != NULL) g_lpddclipper->lpVtbl->Release(g_lpddclipper);
|
||||
|
Loading…
Reference in New Issue
Block a user