[vlc-devel] re : VLC DirectX programing

gbazin at altern.org gbazin at altern.org
Mon May 19 10:26:38 CEST 2003


A correct code snippet would be this one:

HDC DC;
int xScrn,yScrn;
HRESULT dxresultcut;

dxresultcut = IDirectDrawSurface2_GetDC(p_pic->p_sys->p_surface,&DC);

if(dxresultcut != DD_OK)
{
    msg_Err(p_vout,"Can not get DC");
}

xScrn = GetDeviceCaps(DC, HORZRES);
yScrn = GetDeviceCaps(DC, VERTRES);
msg_Err(p_vout,"%i %i",xScrn,yScrn);

IDirectDrawSurface2_ReleaseDC(p_pic->p_sys->p_surface,&DC);

Hope this helps,

--
Gildas
-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list