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
f9c09fbb
Kaydet (Commit)
f9c09fbb
authored
Ock 25, 2012
tarafından
Christina Rossmanith
Kaydeden (comit)
Muthu Subramanian
Ock 25, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Reduced duplicate code detected by simian.
üst
92a87649
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
46 deletions
+22
-46
outdev.hxx
vcl/inc/vcl/outdev.hxx
+1
-0
outdev.cxx
vcl/source/gdi/outdev.cxx
+20
-12
outdev2.cxx
vcl/source/gdi/outdev2.cxx
+1
-34
No files found.
vcl/inc/vcl/outdev.hxx
Dosyayı görüntüle @
f9c09fbb
...
...
@@ -547,6 +547,7 @@ public:
// tells whether this output device is RTL in an LTR UI or LTR in a RTL UI
SAL_DLLPRIVATE
bool
ImplIsAntiparallel
()
const
;
SAL_DLLPRIVATE
Color
ImplDrawModeToColor
(
const
Color
&
rColor
);
// #i101491#
// Helper which holds the old line geometry creation and is extended to use AA when
...
...
vcl/source/gdi/outdev.cxx
Dosyayı görüntüle @
f9c09fbb
...
...
@@ -1238,38 +1238,36 @@ void OutputDevice::SetLineColor()
// -----------------------------------------------------------------------
void
OutputDevice
::
SetLine
Color
(
const
Color
&
rColor
)
Color
OutputDevice
::
ImplDrawModeTo
Color
(
const
Color
&
rColor
)
{
OSL_TRACE
(
"OutputDevice::SetLineColor( %lx )"
,
rColor
.
GetColor
()
);
DBG_CHKTHIS
(
OutputDevice
,
ImplDbgCheckOutputDevice
);
Color
aColor
(
rColor
);
sal_uLong
nDrawMode
=
GetDrawMode
();
if
(
m
nDrawMode
&
(
DRAWMODE_BLACKLINE
|
DRAWMODE_WHITELINE
|
DRAWMODE_GRAYLINE
|
DRAWMODE_GHOSTEDLINE
|
DRAWMODE_SETTINGSLINE
)
)
if
(
nDrawMode
&
(
DRAWMODE_BLACKLINE
|
DRAWMODE_WHITELINE
|
DRAWMODE_GRAYLINE
|
DRAWMODE_GHOSTEDLINE
|
DRAWMODE_SETTINGSLINE
)
)
{
if
(
!
ImplIsColorTransparent
(
aColor
)
)
{
if
(
m
nDrawMode
&
DRAWMODE_BLACKLINE
)
if
(
nDrawMode
&
DRAWMODE_BLACKLINE
)
{
aColor
=
Color
(
COL_BLACK
);
}
else
if
(
m
nDrawMode
&
DRAWMODE_WHITELINE
)
else
if
(
nDrawMode
&
DRAWMODE_WHITELINE
)
{
aColor
=
Color
(
COL_WHITE
);
}
else
if
(
m
nDrawMode
&
DRAWMODE_GRAYLINE
)
else
if
(
nDrawMode
&
DRAWMODE_GRAYLINE
)
{
const
sal_uInt8
cLum
=
aColor
.
GetLuminance
();
aColor
=
Color
(
cLum
,
cLum
,
cLum
);
}
else
if
(
m
nDrawMode
&
DRAWMODE_SETTINGSLINE
)
else
if
(
nDrawMode
&
DRAWMODE_SETTINGSLINE
)
{
aColor
=
GetSettings
().
GetStyleSettings
().
GetFontColor
();
}
if
(
m
nDrawMode
&
DRAWMODE_GHOSTEDLINE
)
if
(
nDrawMode
&
DRAWMODE_GHOSTEDLINE
)
{
aColor
=
Color
(
(
aColor
.
GetRed
()
>>
1
)
|
0x80
,
(
aColor
.
GetGreen
()
>>
1
)
|
0x80
,
...
...
@@ -1277,6 +1275,16 @@ void OutputDevice::SetLineColor( const Color& rColor )
}
}
}
return
aColor
;
}
void
OutputDevice
::
SetLineColor
(
const
Color
&
rColor
)
{
OSL_TRACE
(
"OutputDevice::SetLineColor( %lx )"
,
rColor
.
GetColor
()
);
DBG_CHKTHIS
(
OutputDevice
,
ImplDbgCheckOutputDevice
);
Color
aColor
=
ImplDrawModeToColor
(
rColor
);
if
(
mpMetaFile
)
mpMetaFile
->
AddAction
(
new
MetaLineColorAction
(
aColor
,
sal_True
)
);
...
...
vcl/source/gdi/outdev2.cxx
Dosyayı görüntüle @
f9c09fbb
...
...
@@ -1441,40 +1441,7 @@ void OutputDevice::DrawPixel( const Point& rPt, const Color& rColor )
OSL_TRACE
(
"OutputDevice::DrawPixel()"
);
DBG_CHKTHIS
(
OutputDevice
,
ImplDbgCheckOutputDevice
);
Color
aColor
(
rColor
);
if
(
mnDrawMode
&
(
DRAWMODE_BLACKLINE
|
DRAWMODE_WHITELINE
|
DRAWMODE_GRAYLINE
|
DRAWMODE_GHOSTEDLINE
|
DRAWMODE_SETTINGSLINE
)
)
{
if
(
!
ImplIsColorTransparent
(
aColor
)
)
{
if
(
mnDrawMode
&
DRAWMODE_BLACKLINE
)
{
aColor
=
Color
(
COL_BLACK
);
}
else
if
(
mnDrawMode
&
DRAWMODE_WHITELINE
)
{
aColor
=
Color
(
COL_WHITE
);
}
else
if
(
mnDrawMode
&
DRAWMODE_GRAYLINE
)
{
const
sal_uInt8
cLum
=
aColor
.
GetLuminance
();
aColor
=
Color
(
cLum
,
cLum
,
cLum
);
}
else
if
(
mnDrawMode
&
DRAWMODE_SETTINGSLINE
)
{
aColor
=
GetSettings
().
GetStyleSettings
().
GetFontColor
();
}
if
(
mnDrawMode
&
DRAWMODE_GHOSTEDLINE
)
{
aColor
=
Color
(
(
aColor
.
GetRed
()
>>
1
)
|
0x80
,
(
aColor
.
GetGreen
()
>>
1
)
|
0x80
,
(
aColor
.
GetBlue
()
>>
1
)
|
0x80
);
}
}
}
Color
aColor
=
ImplDrawModeToColor
(
rColor
);
if
(
mpMetaFile
)
mpMetaFile
->
AddAction
(
new
MetaPixelAction
(
rPt
,
aColor
)
);
...
...
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