diff options
-rw-r--r-- | slideshow/source/engine/OGLTrans/mac/OGLTrans_TransitionerImpl.mm | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/slideshow/source/engine/OGLTrans/mac/OGLTrans_TransitionerImpl.mm b/slideshow/source/engine/OGLTrans/mac/OGLTrans_TransitionerImpl.mm index c173a012e4a6..909f79438039 100644 --- a/slideshow/source/engine/OGLTrans/mac/OGLTrans_TransitionerImpl.mm +++ b/slideshow/source/engine/OGLTrans/mac/OGLTrans_TransitionerImpl.mm @@ -168,7 +168,6 @@ protected: return (rBHelper.bDisposed || rBHelper.bInDispose); } -// bool createWindow( Window* pPWindow ); void createTexture(GLuint* texID, bool useMipmap, uno::Sequence<sal_Int8>& data, @@ -349,47 +348,6 @@ bool OGLTransitionerImpl::initialize( const Reference< presentation::XSlideShowV return cbGLXPresent; } -/*bool OGLTransitionerImpl::createWindow( Window* pPWindow ) -{ - const SystemEnvData* sysData(pPWindow->GetSystemData()); - - GLWin.apView = sysData->pView; - - NSOpenGLPixelFormat* fmt = [AquaOpenGLView defaultPixelFormat]; - Window *pFrameWindow = pPWindow->GetWindow(WINDOW_FRAME); - Size aFrameSize( pFrameWindow->GetSizePixel() ); - Point aScreen( pPWindow->OutputToScreenPixel( Point() ) ); - GLWin.aInitFrame = (NSRect){ { aScreen.X(), aFrameSize.Height() - GLWin.Height - aScreen.Y() }, { GLWin.Width, GLWin.Height } }; - - GLWin.pAquaOpenGLView = [[NSOpenGLView alloc]initWithFrame: GLWin.aInitFrame pixelFormat: fmt]; - OSL_ENSURE(GLWin.pAquaOpenGLView, "Could not create NSOPenGLView"); - if( !GLWin.pAquaOpenGLView ) - return false; -// - GLWin.pOpenGLContext = [GLWin.pAquaOpenGLView openGLContext]; - [GLWin.pOpenGLContext retain]; - [GLWin.pAquaOpenGLView setOpenGLContext:GLWin.pOpenGLContext]; - [sysData->pView addSubview:GLWin.pAquaOpenGLView]; -// - if( pWindow ) - { - pWindow->SetMouseTransparent( sal_True ); - pWindow->SetParentClipMode( PARENTCLIPMODE_NOCLIP ); - pWindow->EnableEraseBackground( sal_False ); - pWindow->SetControlForeground(); - pWindow->SetControlBackground(); - pWindow->EnablePaint(sal_False); - pWindow->SetPosSizePixel(pPWindow->GetPosPixel(),pPWindow->GetSizePixel()); - // GLWin.dpy = reinterpret_cast<unx::Display*>(pChildSysData->pDisplay); -// GLWin.win = pChildSysData->aWindow; - - return true; - } - - return false; -} -*/ - bool OGLTransitionerImpl::initWindowFromSlideShowView( const Reference< presentation::XSlideShowView >& xView ) { osl::MutexGuard const guard( m_aMutex ); |