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
56e112aa
Kaydet (Commit)
56e112aa
authored
Kas 19, 2014
tarafından
Louis-Francis Ratté-Boulianne
Kaydeden (comit)
Jan Holesovsky
Kas 22, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: Apply the OutputDevice transformation to the gradient clipping polygon
Change-Id: I16845c6cb0c110749112d608c209020f21549e70
üst
1419d851
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
+8
-12
gdiimpl.cxx
vcl/opengl/gdiimpl.cxx
+0
-1
gradient.cxx
vcl/source/outdev/gradient.cxx
+8
-11
No files found.
vcl/opengl/gdiimpl.cxx
Dosyayı görüntüle @
56e112aa
...
...
@@ -1705,7 +1705,6 @@ bool OpenGLSalGraphicsImpl::drawGradient(const tools::PolyPolygon& rPolyPoly,
aBoundRect
.
Top
()
--
;
aBoundRect
.
Right
()
++
;
aBoundRect
.
Bottom
()
++
;
//TODO: lfrb: some missing transformation with the polygon in outdev
PreDraw
();
...
...
vcl/source/outdev/gradient.cxx
Dosyayı görüntüle @
56e112aa
...
...
@@ -41,8 +41,6 @@ void OutputDevice::DrawGradient( const Rectangle& rRect,
void
OutputDevice
::
DrawGradient
(
const
tools
::
PolyPolygon
&
rPolyPoly
,
const
Gradient
&
rGradient
)
{
bool
bDrawn
=
false
;
if
(
mnDrawMode
&
DRAWMODE_NOGRADIENT
)
return
;
// nothing to draw!
...
...
@@ -52,12 +50,7 @@ void OutputDevice::DrawGradient( const tools::PolyPolygon& rPolyPoly,
if
(
mbOutputClipped
)
return
;
if
(
mpGraphics
||
AcquireGraphics
()
)
{
bDrawn
=
mpGraphics
->
DrawGradient
(
rPolyPoly
,
rGradient
,
this
);
}
if
(
!
bDrawn
&&
rPolyPoly
.
Count
()
&&
rPolyPoly
[
0
].
GetSize
()
)
if
(
rPolyPoly
.
Count
()
&&
rPolyPoly
[
0
].
GetSize
()
)
{
if
(
mnDrawMode
&
(
DRAWMODE_BLACKGRADIENT
|
DRAWMODE_WHITEGRADIENT
|
DRAWMODE_SETTINGSGRADIENT
)
)
{
...
...
@@ -95,6 +88,9 @@ void OutputDevice::DrawGradient( const tools::PolyPolygon& rPolyPoly,
// do nothing if the rectangle is empty
if
(
!
aRect
.
IsEmpty
()
)
{
tools
::
PolyPolygon
aClipPolyPoly
(
ImplLogicToDevicePixel
(
rPolyPoly
)
);
bool
bDrawn
=
false
;
if
(
!
mpGraphics
&&
!
AcquireGraphics
()
)
return
;
...
...
@@ -105,10 +101,11 @@ void OutputDevice::DrawGradient( const tools::PolyPolygon& rPolyPoly,
if
(
mbInitClipRegion
)
InitClipRegion
();
if
(
!
mbOutputClipped
)
{
tools
::
PolyPolygon
aClipPolyPoly
(
ImplLogicToDevicePixel
(
rPolyPoly
)
);
// try to draw gradient natively
bDrawn
=
mpGraphics
->
DrawGradient
(
aClipPolyPoly
,
aGradient
,
this
);
if
(
!
bDrawn
&&
!
mbOutputClipped
)
{
// draw gradients without border
if
(
mbLineColor
||
mbInitLineColor
)
{
...
...
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