summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-01-31 00:47:35 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-01-31 09:48:39 +0100
commit3ad16c66c3a391000171f35cb2c357199cb3ab04 (patch)
treef1984194df5a0f84ed4d0094407d885eb9ff448d /avmedia
parentc3897705a8a38b0892f0b8913c0469dee6e0b80f (diff)
Remove DDRAW_TEST_OUTPUT.
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/win/window.cxx32
1 files changed, 0 insertions, 32 deletions
diff --git a/avmedia/source/win/window.cxx b/avmedia/source/win/window.cxx
index 7163c076fb8b..d0d25f32d091 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
}
}