diff options
author | Michael Meeks <michael.meeks@suse.com> | 2011-10-03 12:21:34 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2011-10-25 13:41:51 +0100 |
commit | a4d7b25e7a006c3105a226343bfb52d9e1bc356a (patch) | |
tree | d84cd975f087ca9fbb24fa0de2e5ae168b9eff72 /vcl/unx/x11 | |
parent | 9b51808742ae4236b582b2693578e8db8e126a13 (diff) |
generic: create shared display class and re-factor to use it
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 e3d51b45f3df..1dee7c9c7618 100644 --- a/vcl/unx/x11/x11sys.cxx +++ b/vcl/unx/x11/x11sys.cxx @@ -58,27 +58,27 @@ X11SalSystem::~X11SalSystem() // for the moment only handle xinerama case unsigned int X11SalSystem::GetDisplayScreenCount() { - SalDisplay* pSalDisp = GetX11SalData()->GetDisplay(); + SalDisplay* pSalDisp = GetGenericData()->GetSalDisplay(); return pSalDisp->IsXinerama() ? pSalDisp->GetXineramaScreens().size() : pSalDisp->GetScreenCount(); } bool X11SalSystem::IsMultiDisplay() { - SalDisplay* pSalDisp = GetX11SalData()->GetDisplay(); + SalDisplay* pSalDisp = GetGenericData()->GetSalDisplay(); unsigned int nScreenCount = pSalDisp->GetScreenCount(); return pSalDisp->IsXinerama() ? false : (nScreenCount > 1); } unsigned int X11SalSystem::GetDefaultDisplayNumber() { - SalDisplay* pSalDisp = GetX11SalData()->GetDisplay(); + SalDisplay* pSalDisp = GetGenericData()->GetSalDisplay(); return pSalDisp->GetDefaultScreenNumber(); } Rectangle X11SalSystem::GetDisplayScreenPosSizePixel( unsigned int nScreen ) { Rectangle aRet; - SalDisplay* pSalDisp = GetX11SalData()->GetDisplay(); + SalDisplay* pSalDisp = GetGenericData()->GetSalDisplay(); if( pSalDisp->IsXinerama() ) { const std::vector< Rectangle >& rScreens = pSalDisp->GetXineramaScreens(); @@ -103,7 +103,7 @@ Rectangle X11SalSystem::GetDisplayWorkAreaPosSizePixel( unsigned int nScreen ) rtl::OUString X11SalSystem::GetScreenName( unsigned int nScreen ) { rtl::OUString aScreenName; - SalDisplay* pSalDisp = GetX11SalData()->GetDisplay(); + SalDisplay* pSalDisp = GetGenericData()->GetSalDisplay(); if( pSalDisp->IsXinerama() ) { const std::vector< Rectangle >& rScreens = pSalDisp->GetXineramaScreens(); |