summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/gdi
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-04 18:26:34 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-04 18:29:31 +0100
commit3042fa532a9b26203491b36f94d709c3b73e46ff (patch)
tree11b75a3e6f3d71e930b71a456eac57439386edd3 /vcl/unx/generic/gdi
parent967331ef6a2765b7021bf835ce85f783257a936c (diff)
Move SalGenericData::GetSalDisplay() out of generic/gendata.hxx
...as it needs SalDisplay to be a complete type, but unx/saldisp.hxx depends on X11 headers and can thus e.g. not be included in generic/gendata.hxx on Android. Change-Id: Iec5f51408eef0d6eb7e2d04105a7408372b06079
Diffstat (limited to 'vcl/unx/generic/gdi')
-rw-r--r--vcl/unx/generic/gdi/gcach_xpeer.cxx2
-rw-r--r--vcl/unx/generic/gdi/salbmp.cxx14
-rw-r--r--vcl/unx/generic/gdi/salgdi.cxx4
-rw-r--r--vcl/unx/generic/gdi/salgdi2.cxx2
-rw-r--r--vcl/unx/generic/gdi/salvd.cxx4
-rw-r--r--vcl/unx/generic/gdi/xrender_peer.cxx2
6 files changed, 14 insertions, 14 deletions
diff --git a/vcl/unx/generic/gdi/gcach_xpeer.cxx b/vcl/unx/generic/gdi/gcach_xpeer.cxx
index 6148912b8652..26bd47ffb366 100644
--- a/vcl/unx/generic/gdi/gcach_xpeer.cxx
+++ b/vcl/unx/generic/gdi/gcach_xpeer.cxx
@@ -38,7 +38,7 @@ X11GlyphPeer::~X11GlyphPeer()
return;
//Why do this here, move into dtor/shutdown of display?
- SalDisplay* pSalDisp = GetGenericData()->GetSalDisplay();
+ SalDisplay* pSalDisp = vcl_sal::getSalDisplay(GetGenericData());
Display* const pX11Disp = pSalDisp->GetDisplay();
int nMaxScreens = pSalDisp->GetXScreenCount();
XRenderPeer& rRenderPeer = XRenderPeer::GetInstance();
diff --git a/vcl/unx/generic/gdi/salbmp.cxx b/vcl/unx/generic/gdi/salbmp.cxx
index 3495ede50595..e4437a7c31b1 100644
--- a/vcl/unx/generic/gdi/salbmp.cxx
+++ b/vcl/unx/generic/gdi/salbmp.cxx
@@ -218,7 +218,7 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB(
if( aDrawable && nWidth && nHeight && nDrawableDepth )
{
- SalDisplay* pSalDisp = GetGenericData()->GetSalDisplay();
+ SalDisplay* pSalDisp = vcl_sal::getSalDisplay(GetGenericData());
Display* pXDisp = pSalDisp->GetDisplay();
// do not die on XError here
@@ -647,7 +647,7 @@ ImplSalDDB* X11SalBitmap::ImplGetDDB(
}
}
- XImage* pImage = ImplCreateXImage( GetGenericData()->GetSalDisplay(), nXScreen,
+ XImage* pImage = ImplCreateXImage( vcl_sal::getSalDisplay(GetGenericData()), nXScreen,
nDrawableDepth, aTwoRect );
if( pImage )
@@ -763,7 +763,7 @@ bool X11SalBitmap::Create(
);
bool bFreePixmap = false;
if( bSuccess && (args[0] >>= bFreePixmap) && bFreePixmap )
- XFreePixmap( GetGenericData()->GetSalDisplay()->GetDisplay(), pixmapHandle );
+ XFreePixmap( vcl_sal::getSalDisplay(GetGenericData())->GetDisplay(), pixmapHandle );
return bSuccess;
}
@@ -889,7 +889,7 @@ ImplSalDDB::ImplSalDDB( XImage* pImage, Drawable aDrawable,
, mnDepth ( pImage->depth )
, mnXScreen ( nXScreen )
{
- SalDisplay* pSalDisp = GetGenericData()->GetSalDisplay();
+ SalDisplay* pSalDisp = vcl_sal::getSalDisplay(GetGenericData());
Display* pXDisp = pSalDisp->GetDisplay();
if( (maPixmap = limitXCreatePixmap( pXDisp, aDrawable, ImplGetWidth(), ImplGetHeight(), ImplGetDepth() )) )
@@ -924,7 +924,7 @@ ImplSalDDB::ImplSalDDB(
, mnDepth( nDrawableDepth )
, mnXScreen( nXScreen )
{
- SalDisplay* pSalDisp = GetGenericData()->GetSalDisplay();
+ SalDisplay* pSalDisp = vcl_sal::getSalDisplay(GetGenericData());
Display* pXDisp = pSalDisp->GetDisplay();
if( (maPixmap = limitXCreatePixmap( pXDisp, aDrawable, nWidth, nHeight, nDrawableDepth )) )
@@ -956,7 +956,7 @@ ImplSalDDB::ImplSalDDB(
ImplSalDDB::~ImplSalDDB()
{
if( maPixmap && ImplGetSVData() )
- XFreePixmap( GetGenericData()->GetSalDisplay()->GetDisplay(), maPixmap );
+ XFreePixmap( vcl_sal::getSalDisplay(GetGenericData())->GetDisplay(), maPixmap );
}
bool ImplSalDDB::ImplMatches( SalX11Screen nXScreen, long nDepth, const SalTwoRect& rTwoRect ) const
@@ -1019,7 +1019,7 @@ void ImplSalDDB::ImplDraw(
long nDestY,
const GC& rGC
) {
- SalDisplay* pSalDisp = GetGenericData()->GetSalDisplay();
+ SalDisplay* pSalDisp = vcl_sal::getSalDisplay(GetGenericData());
Display* pXDisp = pSalDisp->GetDisplay();
if( 1 == nSrcDrawableDepth )
diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx
index 777297238c01..673e5cf1a5af 100644
--- a/vcl/unx/generic/gdi/salgdi.cxx
+++ b/vcl/unx/generic/gdi/salgdi.cxx
@@ -137,7 +137,7 @@ void X11SalGraphics::SetDrawable( Drawable aDrawable, SalX11Screen nXScreen )
if( nXScreen != m_nXScreen )
{
freeResources();
- m_pColormap = &GetGenericData()->GetSalDisplay()->GetColormap( nXScreen );
+ m_pColormap = &vcl_sal::getSalDisplay(GetGenericData())->GetColormap( nXScreen );
m_nXScreen = nXScreen;
}
@@ -155,7 +155,7 @@ void X11SalGraphics::SetDrawable( Drawable aDrawable, SalX11Screen nXScreen )
void X11SalGraphics::Init( SalFrame *pFrame, Drawable aTarget,
SalX11Screen nXScreen )
{
- m_pColormap = &GetGenericData()->GetSalDisplay()->GetColormap(nXScreen);
+ m_pColormap = &vcl_sal::getSalDisplay(GetGenericData())->GetColormap(nXScreen);
m_nXScreen = nXScreen;
m_pFrame = pFrame;
diff --git a/vcl/unx/generic/gdi/salgdi2.cxx b/vcl/unx/generic/gdi/salgdi2.cxx
index e88a18ae1ca9..bd9238001468 100644
--- a/vcl/unx/generic/gdi/salgdi2.cxx
+++ b/vcl/unx/generic/gdi/salgdi2.cxx
@@ -113,7 +113,7 @@ void X11SalGraphics::YieldGraphicsExpose()
::Window aWindow = GetDrawable();
if( ! pFrame )
{
- const std::list< SalFrame* >& rFrames = GetGenericData()->GetSalDisplay()->getFrames();
+ const std::list< SalFrame* >& rFrames = vcl_sal::getSalDisplay(GetGenericData())->getFrames();
for( std::list< SalFrame* >::const_iterator it = rFrames.begin(); it != rFrames.end() && ! pFrame; ++it )
{
const SystemEnvData* pEnvData = (*it)->GetSystemData();
diff --git a/vcl/unx/generic/gdi/salvd.cxx b/vcl/unx/generic/gdi/salvd.cxx
index b4bcfa16edb5..3ec516bd038d 100644
--- a/vcl/unx/generic/gdi/salvd.cxx
+++ b/vcl/unx/generic/gdi/salvd.cxx
@@ -94,7 +94,7 @@ X11SalVirtualDevice::X11SalVirtualDevice( SalGraphics* pGraphics,
if( !nBitCount && pGraphics )
nBitCount = pGraphics->GetBitCount();
- pDisplay_ = GetGenericData()->GetSalDisplay();
+ pDisplay_ = vcl_sal::getSalDisplay(GetGenericData());
pGraphics_ = new X11SalGraphics();
nDepth_ = nBitCount;
@@ -124,7 +124,7 @@ X11SalVirtualDevice::X11SalVirtualDevice( SalGraphics* pGraphics,
nDX_ = nDX;
nDY_ = nDY;
m_nXScreen = pGraphics ? static_cast<X11SalGraphics*>(pGraphics)->GetScreenNumber() :
- GetGenericData()->GetSalDisplay()->GetDefaultXScreen();
+ vcl_sal::getSalDisplay(GetGenericData())->GetDefaultXScreen();
hDrawable_ = limitXCreatePixmap( GetXDisplay(),
pDisplay_->GetDrawable( m_nXScreen ),
nDX_, nDY_,
diff --git a/vcl/unx/generic/gdi/xrender_peer.cxx b/vcl/unx/generic/gdi/xrender_peer.cxx
index d5763018841a..b7c5d7627c25 100644
--- a/vcl/unx/generic/gdi/xrender_peer.cxx
+++ b/vcl/unx/generic/gdi/xrender_peer.cxx
@@ -27,7 +27,7 @@
#include <xrender_peer.hxx>
XRenderPeer::XRenderPeer()
- : mpDisplay( GetGenericData()->GetSalDisplay()->GetDisplay() )
+ : mpDisplay( vcl_sal::getSalDisplay(GetGenericData())->GetDisplay() )
, mpStandardFormatA8( NULL )
{
InitRenderLib();