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
c3ac689d
Kaydet (Commit)
c3ac689d
authored
Ock 28, 2012
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
simplify PSEUDOCOLOR12
üst
10e3da7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
saldisp.cxx
vcl/unx/generic/app/saldisp.cxx
+0
-18
No files found.
vcl/unx/generic/app/saldisp.cxx
Dosyayı görüntüle @
c3ac689d
...
@@ -92,14 +92,6 @@ using ::rtl::OUString;
...
@@ -92,14 +92,6 @@ using ::rtl::OUString;
// -=-= #defines -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// -=-= #defines -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#define PSEUDOCOLOR12
#define PSEUDOCOLOR8
#define TRUECOLOR24
#define TRUECOLOR16
#define TRUECOLOR15
#define TRUECOLOR12
#define TRUECOLOR8
#define SALCOLOR_WHITE MAKE_SALCOLOR( 0xFF, 0xFF, 0xFF )
#define SALCOLOR_WHITE MAKE_SALCOLOR( 0xFF, 0xFF, 0xFF )
#define SALCOLOR_BLACK MAKE_SALCOLOR( 0x00, 0x00, 0x00 )
#define SALCOLOR_BLACK MAKE_SALCOLOR( 0x00, 0x00, 0x00 )
...
@@ -296,10 +288,8 @@ sal_Bool SalDisplay::BestVisual( Display *pDisplay,
...
@@ -296,10 +288,8 @@ sal_Bool SalDisplay::BestVisual( Display *pDisplay,
{
{
if
(
pVInfos
[
i
].
depth
<=
8
)
if
(
pVInfos
[
i
].
depth
<=
8
)
bUsable
=
sal_True
;
bUsable
=
sal_True
;
#ifdef PSEUDOCOLOR12
else
if
(
pVInfos
[
i
].
depth
==
12
)
else
if
(
pVInfos
[
i
].
depth
==
12
)
bUsable
=
sal_True
;
bUsable
=
sal_True
;
#endif
}
}
pWeight
[
i
]
=
bUsable
?
nTrueColor
*
pVInfos
[
i
].
depth
:
-
1024
;
pWeight
[
i
]
=
bUsable
?
nTrueColor
*
pVInfos
[
i
].
depth
:
-
1024
;
pWeight
[
i
]
-=
pVInfos
[
i
].
visualid
;
pWeight
[
i
]
-=
pVInfos
[
i
].
visualid
;
...
@@ -2803,11 +2793,7 @@ SalColor SalColormap::GetColor( Pixel nPixel ) const
...
@@ -2803,11 +2793,7 @@ SalColor SalColormap::GetColor( Pixel nPixel ) const
if
(
m_aPalette
.
empty
()
if
(
m_aPalette
.
empty
()
&&
m_hColormap
&&
m_hColormap
#ifdef PSEUDOCOLOR12
&&
m_aVisual
.
GetDepth
()
<=
12
&&
m_aVisual
.
GetDepth
()
<=
12
#else
&&
m_aVisual
.
GetDepth
()
<=
8
#endif
&&
m_aVisual
.
GetClass
()
==
PseudoColor
)
&&
m_aVisual
.
GetClass
()
==
PseudoColor
)
((
SalColormap
*
)
this
)
->
GetPalette
();
((
SalColormap
*
)
this
)
->
GetPalette
();
}
}
...
@@ -2867,11 +2853,7 @@ Pixel SalColormap::GetPixel( SalColor nSalColor ) const
...
@@ -2867,11 +2853,7 @@ Pixel SalColormap::GetPixel( SalColor nSalColor ) const
{
{
if
(
m_aPalette
.
empty
()
if
(
m_aPalette
.
empty
()
&&
m_hColormap
&&
m_hColormap
#ifdef PSEUDOCOLOR12
&&
m_aVisual
.
GetDepth
()
<=
12
&&
m_aVisual
.
GetDepth
()
<=
12
#else
&&
m_aVisual
.
GetDepth
()
<=
8
#endif
&&
m_aVisual
.
GetClass
()
==
PseudoColor
)
// what else ???
&&
m_aVisual
.
GetClass
()
==
PseudoColor
)
// what else ???
((
SalColormap
*
)
this
)
->
GetPalette
();
((
SalColormap
*
)
this
)
->
GetPalette
();
...
...
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