diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-04 18:26:34 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-04 18:29:31 +0100 |
commit | 3042fa532a9b26203491b36f94d709c3b73e46ff (patch) | |
tree | 11b75a3e6f3d71e930b71a456eac57439386edd3 /vcl/unx/x11 | |
parent | 967331ef6a2765b7021bf835ce85f783257a936c (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/x11')
-rw-r--r-- | vcl/unx/x11/x11sys.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/unx/x11/x11sys.cxx b/vcl/unx/x11/x11sys.cxx index 9749cfc74e4e..5882fdb0589d 100644 --- a/vcl/unx/x11/x11sys.cxx +++ b/vcl/unx/x11/x11sys.cxx @@ -43,28 +43,28 @@ X11SalSystem::~X11SalSystem() // for the moment only handle xinerama case unsigned int X11SalSystem::GetDisplayScreenCount() { - SalDisplay* pSalDisp = GetGenericData()->GetSalDisplay(); + SalDisplay* pSalDisp = vcl_sal::getSalDisplay(GetGenericData()); return pSalDisp->IsXinerama() ? pSalDisp->GetXineramaScreens().size() : pSalDisp->GetXScreenCount(); } bool X11SalSystem::IsUnifiedDisplay() { - SalDisplay* pSalDisp = GetGenericData()->GetSalDisplay(); + SalDisplay* pSalDisp = vcl_sal::getSalDisplay(GetGenericData()); unsigned int nScreenCount = pSalDisp->GetXScreenCount(); return pSalDisp->IsXinerama() || (nScreenCount == 1); } unsigned int X11SalSystem::GetDisplayBuiltInScreen() { - SalDisplay* pSalDisp = GetGenericData()->GetSalDisplay(); + SalDisplay* pSalDisp = vcl_sal::getSalDisplay(GetGenericData()); return pSalDisp->GetDefaultXScreen().getXScreen(); } Rectangle X11SalSystem::GetDisplayScreenPosSizePixel( unsigned int nScreen ) { Rectangle aRet; - SalDisplay* pSalDisp = GetGenericData()->GetSalDisplay(); + SalDisplay* pSalDisp = vcl_sal::getSalDisplay(GetGenericData()); if( pSalDisp->IsXinerama() ) { const std::vector< Rectangle >& rScreens = pSalDisp->GetXineramaScreens(); @@ -88,7 +88,7 @@ Rectangle X11SalSystem::GetDisplayScreenPosSizePixel( unsigned int nScreen ) OUString X11SalSystem::GetDisplayScreenName( unsigned int nScreen ) { OUString aScreenName; - SalDisplay* pSalDisp = GetGenericData()->GetSalDisplay(); + SalDisplay* pSalDisp = vcl_sal::getSalDisplay(GetGenericData()); if( pSalDisp->IsXinerama() ) { const std::vector< Rectangle >& rScreens = pSalDisp->GetXineramaScreens(); |