Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
8619d58e
Kaydet (Commit)
8619d58e
authored
Eki 27, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
there is no USE_XINERAMA define, but USE_XINERAMA_XSUN/USE_XINERAMA_XORG
üst
a32662e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
22 deletions
+16
-22
saldisp.cxx
vcl/unx/generic/app/saldisp.cxx
+16
-22
No files found.
vcl/unx/generic/app/saldisp.cxx
Dosyayı görüntüle @
8619d58e
...
@@ -58,7 +58,6 @@
...
@@ -58,7 +58,6 @@
#include <X11/XKBlib.h>
#include <X11/XKBlib.h>
#include <X11/Xatom.h>
#include <X11/Xatom.h>
#ifdef USE_XINERAMA
#ifdef USE_XINERAMA_XORG
#ifdef USE_XINERAMA_XORG
#include <X11/extensions/Xinerama.h>
#include <X11/extensions/Xinerama.h>
#elif defined USE_XINERAMA_XSUN
#elif defined USE_XINERAMA_XSUN
...
@@ -69,9 +68,6 @@ Status XineramaGetInfo(Display*, int, XRectangle*, unsigned char*, int*);
...
@@ -69,9 +68,6 @@ Status XineramaGetInfo(Display*, int, XRectangle*, unsigned char*, int*);
#else
#else
#include <X11/extensions/xinerama.h>
#include <X11/extensions/xinerama.h>
#endif
#endif
#else
#error USE_XINERAMA but no xinerama version
#endif
#endif
#endif
#include <tools/postx.h>
#include <tools/postx.h>
...
@@ -2455,7 +2451,6 @@ void SalDisplay::InitXinerama()
...
@@ -2455,7 +2451,6 @@ void SalDisplay::InitXinerama()
m_bXinerama
=
false
;
m_bXinerama
=
false
;
return
;
// multiple screens mean no xinerama
return
;
// multiple screens mean no xinerama
}
}
#ifdef USE_XINERAMA
#if defined(USE_XINERAMA_XSUN)
#if defined(USE_XINERAMA_XSUN)
int
nFramebuffers
=
1
;
int
nFramebuffers
=
1
;
if
(
XineramaGetState
(
pDisp_
,
m_nDefaultScreen
)
)
if
(
XineramaGetState
(
pDisp_
,
m_nDefaultScreen
)
)
...
@@ -2480,28 +2475,28 @@ void SalDisplay::InitXinerama()
...
@@ -2480,28 +2475,28 @@ void SalDisplay::InitXinerama()
}
}
}
}
#elif defined(USE_XINERAMA_XORG)
#elif defined(USE_XINERAMA_XORG)
if
(
XineramaIsActive
(
pDisp_
)
)
if
(
XineramaIsActive
(
pDisp_
)
)
{
int
nFramebuffers
=
1
;
XineramaScreenInfo
*
pScreens
=
XineramaQueryScreens
(
pDisp_
,
&
nFramebuffers
);
if
(
pScreens
)
{
{
if
(
nFramebuffers
>
1
)
int
nFramebuffers
=
1
;
XineramaScreenInfo
*
pScreens
=
XineramaQueryScreens
(
pDisp_
,
&
nFramebuffers
);
if
(
pScreens
)
{
{
m_aXineramaScreens
=
std
::
vector
<
Rectangle
>
();
if
(
nFramebuffers
>
1
)
m_aXineramaScreenIndexMap
=
std
::
vector
<
int
>
(
nFramebuffers
);
for
(
int
i
=
0
;
i
<
nFramebuffers
;
i
++
)
{
{
addXineramaScreenUnique
(
i
,
pScreens
[
i
].
x_org
,
m_aXineramaScreens
=
std
::
vector
<
Rectangle
>
();
pScreens
[
i
].
y_org
,
m_aXineramaScreenIndexMap
=
std
::
vector
<
int
>
(
nFramebuffers
);
pScreens
[
i
].
width
,
for
(
int
i
=
0
;
i
<
nFramebuffers
;
i
++
)
pScreens
[
i
].
height
);
{
addXineramaScreenUnique
(
i
,
pScreens
[
i
].
x_org
,
pScreens
[
i
].
y_org
,
pScreens
[
i
].
width
,
pScreens
[
i
].
height
);
}
m_bXinerama
=
m_aXineramaScreens
.
size
()
>
1
;
}
}
m_bXinerama
=
m_aXineramaScreens
.
size
()
>
1
;
XFree
(
pScreens
)
;
}
}
XFree
(
pScreens
);
}
}
}
#endif
#endif
#if OSL_DEBUG_LEVEL > 1
#if OSL_DEBUG_LEVEL > 1
if
(
m_bXinerama
)
if
(
m_bXinerama
)
...
@@ -2510,7 +2505,6 @@ if( XineramaIsActive( pDisp_ ) )
...
@@ -2510,7 +2505,6 @@ if( XineramaIsActive( pDisp_ ) )
fprintf
(
stderr
,
"Xinerama screen: %ldx%ld+%ld+%ld
\n
"
,
it
->
GetWidth
(),
it
->
GetHeight
(),
it
->
Left
(),
it
->
Top
()
);
fprintf
(
stderr
,
"Xinerama screen: %ldx%ld+%ld+%ld
\n
"
,
it
->
GetWidth
(),
it
->
GetHeight
(),
it
->
Left
(),
it
->
Top
()
);
}
}
#endif
#endif
#endif // USE_XINERAMA
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment