Kaydet (Commit) b3e74732 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

don't try to use X11 functions on OSX

Change-Id: Ife987833a52c7ed0b55f1003df1ee0dad2011cc0
üst d4415573
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
#include "OGLTrans_TransitionImpl.hxx" #include "OGLTrans_TransitionImpl.hxx"
#if defined( UNX ) #if defined( UNX ) && !defined( MACOSX )
#include <X11/keysym.h> #include <X11/keysym.h>
#include <X11/X.h> #include <X11/X.h>
#endif #endif
...@@ -153,7 +153,7 @@ int calcComponentOrderIndex(const uno::Sequence<sal_Int8>& rTags) ...@@ -153,7 +153,7 @@ int calcComponentOrderIndex(const uno::Sequence<sal_Int8>& rTags)
return -1; return -1;
} }
#ifdef UNX #if defined( UNX ) && !defined( MACOSX )
// not thread safe // not thread safe
static bool errorTriggered; static bool errorTriggered;
...@@ -258,7 +258,7 @@ private: ...@@ -258,7 +258,7 @@ private:
bool mbUseEnteringPixmap; bool mbUseEnteringPixmap;
bool mbFreeLeavingPixmap; bool mbFreeLeavingPixmap;
bool mbFreeEnteringPixmap; bool mbFreeEnteringPixmap;
#ifdef UNX #if defined( UNX ) && !defined( MACOSX )
Pixmap maLeavingPixmap; Pixmap maLeavingPixmap;
Pixmap maEnteringPixmap; Pixmap maEnteringPixmap;
#endif #endif
...@@ -362,6 +362,7 @@ bool OGLTransitionerImpl::initWindowFromSlideShowView( const Reference< presenta ...@@ -362,6 +362,7 @@ bool OGLTransitionerImpl::initWindowFromSlideShowView( const Reference< presenta
aDeviceParams[1] >>= aVal; aDeviceParams[1] >>= aVal;
mpContext = boost::make_shared<OpenGLContext>(); mpContext = boost::make_shared<OpenGLContext>();
mpContext->requestLegacyContext();
if( !mpContext->init( reinterpret_cast< Window* >( aVal ) ) ) if( !mpContext->init( reinterpret_cast< Window* >( aVal ) ) )
return false; return false;
...@@ -513,7 +514,7 @@ void OGLTransitionerImpl::impl_prepareSlides() ...@@ -513,7 +514,7 @@ void OGLTransitionerImpl::impl_prepareSlides()
mpContext->sync(); mpContext->sync();
#ifdef UNX #if defined( UNX ) && !defined( MACOSX )
// synchronized X still gives us much smoother play // synchronized X still gives us much smoother play
// I suspect some issues in above code in slideshow // I suspect some issues in above code in slideshow
// synchronize whole transition for now // synchronize whole transition for now
...@@ -1297,7 +1298,7 @@ void OGLTransitionerImpl::disposing() ...@@ -1297,7 +1298,7 @@ void OGLTransitionerImpl::disposing()
} }
#endif #endif
#ifdef UNX #if defined( UNX ) && !defined( MACOSX )
if( mbRestoreSync && bool(mpContext) ) { if( mbRestoreSync && bool(mpContext) ) {
// try to reestablish synchronize state // try to reestablish synchronize state
char* sal_synchronize = getenv("SAL_SYNCHRONIZE"); char* sal_synchronize = getenv("SAL_SYNCHRONIZE");
...@@ -1331,7 +1332,7 @@ OGLTransitionerImpl::OGLTransitionerImpl() ...@@ -1331,7 +1332,7 @@ OGLTransitionerImpl::OGLTransitionerImpl()
, mbUseEnteringPixmap(false) , mbUseEnteringPixmap(false)
, mbFreeLeavingPixmap(false) , mbFreeLeavingPixmap(false)
, mbFreeEnteringPixmap(false) , mbFreeEnteringPixmap(false)
#ifdef UNX #if defined( UNX ) && !defined( MACOSX )
, maLeavingPixmap(0) , maLeavingPixmap(0)
, maEnteringPixmap(0) , maEnteringPixmap(0)
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment