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
43e961e4
Kaydet (Commit)
43e961e4
authored
Tem 12, 2011
tarafından
Michael Meeks
Kaydeden (comit)
Michael Meeks
Eki 25, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
headless: clip more intelligently without allocating huge masks constantly
üst
40552039
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
svpgdi.hxx
vcl/inc/unx/headless/svpgdi.hxx
+17
-3
svpgdi.cxx
vcl/unx/headless/svpgdi.cxx
+0
-0
svptext.cxx
vcl/unx/headless/svptext.cxx
+2
-0
No files found.
vcl/inc/unx/headless/svpgdi.hxx
Dosyayı görüntüle @
43e961e4
...
@@ -41,7 +41,6 @@ class SvpSalGraphics : public SalGraphics
...
@@ -41,7 +41,6 @@ class SvpSalGraphics : public SalGraphics
{
{
basebmp
::
BitmapDeviceSharedPtr
m_aDevice
;
basebmp
::
BitmapDeviceSharedPtr
m_aDevice
;
basebmp
::
BitmapDeviceSharedPtr
m_aOrigDevice
;
basebmp
::
BitmapDeviceSharedPtr
m_aOrigDevice
;
basebmp
::
BitmapDeviceSharedPtr
m_aClipMap
;
bool
m_bUseLineColor
;
bool
m_bUseLineColor
;
basebmp
::
Color
m_aLineColor
;
basebmp
::
Color
m_aLineColor
;
...
@@ -54,6 +53,22 @@ class SvpSalGraphics : public SalGraphics
...
@@ -54,6 +53,22 @@ class SvpSalGraphics : public SalGraphics
ServerFont
*
m_pServerFont
[
MAX_FALLBACK
];
ServerFont
*
m_pServerFont
[
MAX_FALLBACK
];
sal_uInt32
m_eTextFmt
;
sal_uInt32
m_eTextFmt
;
basebmp
::
BitmapDeviceSharedPtr
m_aClipMap
;
protected
:
Region
m_aClipRegion
;
basegfx
::
B2IVector
GetSize
()
{
return
m_aOrigDevice
->
getSize
();
}
private
:
bool
m_bClipSetup
;
struct
ClipUndoHandle
{
SvpSalGraphics
&
m_rGfx
;
basebmp
::
BitmapDeviceSharedPtr
m_aDevice
;
ClipUndoHandle
(
SvpSalGraphics
*
pGfx
)
:
m_rGfx
(
*
pGfx
)
{}
~
ClipUndoHandle
();
};
ClipUndoHandle
ensureClipFor
(
const
basegfx
::
B2IRange
&
aRange
);
void
ensureClip
();
protected
:
protected
:
virtual
bool
drawAlphaBitmap
(
const
SalTwoRect
&
,
const
SalBitmap
&
rSourceBitmap
,
const
SalBitmap
&
rAlphaBitmap
);
virtual
bool
drawAlphaBitmap
(
const
SalTwoRect
&
,
const
SalBitmap
&
rSourceBitmap
,
const
SalBitmap
&
rAlphaBitmap
);
virtual
bool
drawAlphaRect
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
,
sal_uInt8
nTransparency
);
virtual
bool
drawAlphaRect
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
,
sal_uInt8
nTransparency
);
...
@@ -76,8 +91,7 @@ public:
...
@@ -76,8 +91,7 @@ public:
virtual
void
SetLineColor
();
virtual
void
SetLineColor
();
virtual
void
SetLineColor
(
SalColor
nSalColor
);
virtual
void
SetLineColor
(
SalColor
nSalColor
);
virtual
void
SetFillColor
();
virtual
void
SetFillColor
();
virtual
void
SetFillColor
(
SalColor
nSalColor
);
virtual
void
SetFillColor
(
SalColor
nSalColor
);
virtual
void
SetXORMode
(
bool
bSet
,
bool
);
virtual
void
SetXORMode
(
bool
bSet
,
bool
);
...
...
vcl/unx/headless/svpgdi.cxx
Dosyayı görüntüle @
43e961e4
This diff is collapsed.
Click to expand it.
vcl/unx/headless/svptext.cxx
Dosyayı görüntüle @
43e961e4
...
@@ -533,6 +533,8 @@ void SvpSalGraphics::DrawServerFontLayout( const ServerFontLayout& rSalLayout )
...
@@ -533,6 +533,8 @@ void SvpSalGraphics::DrawServerFontLayout( const ServerFontLayout& rSalLayout )
// blend text color into target using the glyph's mask
// blend text color into target using the glyph's mask
const
B2IRange
aSrcRect
(
B2ITuple
(
0
,
0
),
aAlphaMask
->
getSize
()
);
const
B2IRange
aSrcRect
(
B2ITuple
(
0
,
0
),
aAlphaMask
->
getSize
()
);
const
B2IRange
aClipRect
(
aDstPoint
,
aAlphaMask
->
getSize
()
);
SvpSalGraphics
::
ClipUndoHandle
aUndo
=
ensureClipFor
(
aClipRect
);
m_aDevice
->
drawMaskedColor
(
m_aTextColor
,
aAlphaMask
,
aSrcRect
,
aDstPoint
,
m_aClipMap
);
m_aDevice
->
drawMaskedColor
(
m_aTextColor
,
aAlphaMask
,
aSrcRect
,
aDstPoint
,
m_aClipMap
);
}
}
}
}
...
...
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