From b3e74732e9a9dc324f3c0985fe2601fcd8b94f9e Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 16 Aug 2014 05:38:04 +0200 Subject: don't try to use X11 functions on OSX Change-Id: Ife987833a52c7ed0b55f1003df1ee0dad2011cc0 --- .../engine/OGLTrans/generic/OGLTrans_TransitionerImpl.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'slideshow/source') diff --git a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionerImpl.cxx b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionerImpl.cxx index 19c16067d356..879024ee98a0 100644 --- a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionerImpl.cxx +++ b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionerImpl.cxx @@ -68,7 +68,7 @@ #include "OGLTrans_TransitionImpl.hxx" -#if defined( UNX ) +#if defined( UNX ) && !defined( MACOSX ) #include #include #endif @@ -153,7 +153,7 @@ int calcComponentOrderIndex(const uno::Sequence& rTags) return -1; } -#ifdef UNX +#if defined( UNX ) && !defined( MACOSX ) // not thread safe static bool errorTriggered; @@ -258,7 +258,7 @@ private: bool mbUseEnteringPixmap; bool mbFreeLeavingPixmap; bool mbFreeEnteringPixmap; -#ifdef UNX +#if defined( UNX ) && !defined( MACOSX ) Pixmap maLeavingPixmap; Pixmap maEnteringPixmap; #endif @@ -362,6 +362,7 @@ bool OGLTransitionerImpl::initWindowFromSlideShowView( const Reference< presenta aDeviceParams[1] >>= aVal; mpContext = boost::make_shared(); + mpContext->requestLegacyContext(); if( !mpContext->init( reinterpret_cast< Window* >( aVal ) ) ) return false; @@ -513,7 +514,7 @@ void OGLTransitionerImpl::impl_prepareSlides() mpContext->sync(); -#ifdef UNX +#if defined( UNX ) && !defined( MACOSX ) // synchronized X still gives us much smoother play // I suspect some issues in above code in slideshow // synchronize whole transition for now @@ -1297,7 +1298,7 @@ void OGLTransitionerImpl::disposing() } #endif -#ifdef UNX +#if defined( UNX ) && !defined( MACOSX ) if( mbRestoreSync && bool(mpContext) ) { // try to reestablish synchronize state char* sal_synchronize = getenv("SAL_SYNCHRONIZE"); @@ -1331,7 +1332,7 @@ OGLTransitionerImpl::OGLTransitionerImpl() , mbUseEnteringPixmap(false) , mbFreeLeavingPixmap(false) , mbFreeEnteringPixmap(false) -#ifdef UNX +#if defined( UNX ) && !defined( MACOSX ) , maLeavingPixmap(0) , maEnteringPixmap(0) #endif -- cgit v1.2.3