diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-01-31 00:47:35 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-01-31 09:48:39 +0100 |
commit | fb0021f3f812d9ce53ff7aeb16117e1d97993b6b (patch) | |
tree | 8a08f8ec8b457e27ab5d590fa4cc68cfd5773cdc /avmedia | |
parent | 7f96f90bec00bd6c5d001ee3131f3381fc4508cf (diff) |
Remove DDRAW_TEST_OUTPUT.
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/win/window.cxx | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/avmedia/source/win/window.cxx b/avmedia/source/win/window.cxx index 3c2006abb8..917d9f748e 100644 --- a/avmedia/source/win/window.cxx +++ b/avmedia/source/win/window.cxx @@ -342,33 +342,6 @@ bool Window::create( const uno::Sequence< uno::Any >& rArguments ) { ::SetWindowLong( (HWND) mnFrameWnd, 0, (DWORD) this ); -#ifdef DDRAW_TEST_OUTPUT - IDirectDraw7* pDDraw; - IDirectDrawSurface7* pDDSurface; - IDirectDrawClipper* pDDClipper; - - if( DD_OK == DirectDrawCreateEx( NULL, (void**) &pDDraw, IID_IDirectDraw7, NULL ) ) - { - if( DD_OK == pDDraw->SetCooperativeLevel( (HWND) mnParentWnd, DDSCL_NORMAL ) ) - { - DDSURFACEDESC2 aDDDesc; - - memset( &aDDDesc, 0, sizeof( aDDDesc ) ); - aDDDesc.dwSize = sizeof( aDDDesc ); - aDDDesc.dwFlags = DDSD_CAPS; - aDDDesc.ddsCaps.dwCaps |= DDSCAPS_PRIMARYSURFACE; - - if( DD_OK == pDDraw->CreateSurface( &aDDDesc, &pDDSurface, NULL ) ) - { - if( DD_OK == pDDraw->CreateClipper( 0, &pDDClipper, NULL ) ) - { - pDDClipper->SetHWnd( 0, (HWND) mnFrameWnd ); - pDDSurface->SetClipper( pDDClipper ); - } - - mrPlayer.setDDrawParams( (IDirectDraw*) pDDraw, (IDirectDrawSurface*) pDDSurface ); -#endif - pVideoWindow->put_Owner( (OAHWND) mnFrameWnd ); pVideoWindow->put_MessageDrain( (OAHWND) mnFrameWnd ); pVideoWindow->put_WindowStyle( WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN ); @@ -377,11 +350,6 @@ bool Window::create( const uno::Sequence< uno::Any >& rArguments ) meZoomLevel = media::ZoomLevel_ORIGINAL; ImplLayoutVideoWindow(); -#ifdef DDRAW_TEST_OUTPUT - } - } - } -#endif } } |