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
22d05186
Kaydet (Commit)
22d05186
authored
Ara 17, 2011
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
callcatcher: remove unused SalColormap methods
üst
f0720089
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
56 deletions
+0
-56
saldisp.hxx
vcl/inc/unx/saldisp.hxx
+0
-2
saldisp.cxx
vcl/unx/generic/app/saldisp.cxx
+0
-54
No files found.
vcl/inc/unx/saldisp.hxx
Dosyayı görüntüle @
22d05186
...
...
@@ -163,7 +163,6 @@ public:
SalColormap
(
const
SalDisplay
*
pSalDisplay
,
Colormap
hColormap
,
int
nScreen
);
SalColormap
(
const
BitmapPalette
&
rpPalette
);
SalColormap
(
sal_uInt16
nDepth
);
SalColormap
();
~
SalColormap
();
...
...
@@ -189,7 +188,6 @@ public:
int
b
)
const
;
Pixel
GetPixel
(
SalColor
nColor
)
const
;
SalColor
GetColor
(
Pixel
nPixel
)
const
;
void
SetPalette
(
const
BitmapPalette
&
rPalette
);
};
// -=-= SalXLib =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
...
...
vcl/unx/generic/app/saldisp.cxx
Dosyayı görüntüle @
22d05186
...
...
@@ -2777,30 +2777,6 @@ SalColormap::SalColormap( const SalDisplay *pDisplay, Colormap hColormap, int nS
}
}
// PseudoColor
SalColormap
::
SalColormap
(
const
BitmapPalette
&
rPalette
)
:
m_pDisplay
(
GetGenericData
()
->
GetSalDisplay
()
),
m_hColormap
(
None
),
m_nWhitePixel
(
SALCOLOR_NONE
),
m_nBlackPixel
(
SALCOLOR_NONE
),
m_nUsed
(
rPalette
.
GetEntryCount
()
),
m_nScreen
(
GetGenericData
()
->
GetSalDisplay
()
->
GetDefaultScreenNumber
()
)
{
m_aPalette
=
std
::
vector
<
SalColor
>
(
m_nUsed
);
for
(
unsigned
int
i
=
0
;
i
<
m_nUsed
;
i
++
)
{
const
BitmapColor
&
rColor
=
rPalette
[
i
];
m_aPalette
[
i
]
=
MAKE_SALCOLOR
(
rColor
.
GetRed
(),
rColor
.
GetGreen
(),
rColor
.
GetBlue
()
);
if
(
(
m_nBlackPixel
==
SALCOLOR_NONE
)
&&
(
SALCOLOR_BLACK
==
m_aPalette
[
i
])
)
m_nBlackPixel
=
i
;
else
if
(
(
m_nWhitePixel
==
SALCOLOR_NONE
)
&&
(
SALCOLOR_WHITE
==
m_aPalette
[
i
])
)
m_nWhitePixel
=
i
;
}
}
// MonoChrome
SalColormap
::
SalColormap
()
:
m_pDisplay
(
GetGenericData
()
->
GetSalDisplay
()
),
...
...
@@ -2913,36 +2889,6 @@ SalColormap::~SalColormap()
#endif
}
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
void
SalColormap
::
SetPalette
(
const
BitmapPalette
&
rPalette
)
{
if
(
this
!=
&
GetGenericData
()
->
GetSalDisplay
()
->
GetColormap
(
m_nScreen
)
)
{
m_nBlackPixel
=
SALCOLOR_NONE
;
m_nWhitePixel
=
SALCOLOR_NONE
;
}
if
(
rPalette
.
GetEntryCount
()
>
m_nUsed
)
{
m_nBlackPixel
=
SALCOLOR_NONE
;
m_nWhitePixel
=
SALCOLOR_NONE
;
m_nUsed
=
rPalette
.
GetEntryCount
();
m_aPalette
=
std
::
vector
<
SalColor
>
(
m_nUsed
);
}
for
(
int
i
=
0
;
i
<
rPalette
.
GetEntryCount
();
i
++
)
{
const
BitmapColor
&
rColor
=
rPalette
[
i
];
m_aPalette
[
i
]
=
MAKE_SALCOLOR
(
rColor
.
GetRed
(),
rColor
.
GetGreen
(),
rColor
.
GetBlue
()
);
if
(
(
m_nBlackPixel
==
SALCOLOR_NONE
)
&&
(
SALCOLOR_BLACK
==
m_aPalette
[
i
])
)
m_nBlackPixel
=
i
;
else
if
(
(
m_nWhitePixel
==
SALCOLOR_NONE
)
&&
(
SALCOLOR_WHITE
==
m_aPalette
[
i
])
)
m_nWhitePixel
=
i
;
}
}
void
SalColormap
::
GetPalette
()
{
Pixel
i
;
...
...
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