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
b7d74366
Kaydet (Commit)
b7d74366
authored
Kas 15, 2014
tarafından
Michael Meeks
Kaydeden (comit)
Markus Mohrhard
Ara 11, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcldemo: disable broken gradient stencil use.
Change-Id: Ifce85b1a7fa8e8b6fc57802a5fb559d2db50ba2a
üst
cf01aff0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
gdiimpl.cxx
vcl/opengl/gdiimpl.cxx
+5
-0
vcldemo.cxx
vcl/workben/vcldemo.cxx
+1
-0
No files found.
vcl/opengl/gdiimpl.cxx
Dosyayı görüntüle @
b7d74366
...
@@ -1373,6 +1373,8 @@ bool OpenGLSalGraphicsImpl::drawGradient(const tools::PolyPolygon& rPolyPoly,
...
@@ -1373,6 +1373,8 @@ bool OpenGLSalGraphicsImpl::drawGradient(const tools::PolyPolygon& rPolyPoly,
PreDraw
();
PreDraw
();
#define FIXME_BROKEN_STENCIL_FOR_GRADIENTS 0
#if FIXME_BROKEN_STENCIL_FOR_GRADIENTS
ImplSetClipBit
(
vcl
::
Region
(
rPolyPoly
),
0x02
);
ImplSetClipBit
(
vcl
::
Region
(
rPolyPoly
),
0x02
);
if
(
mbUseStencil
)
if
(
mbUseStencil
)
{
{
...
@@ -1384,6 +1386,7 @@ bool OpenGLSalGraphicsImpl::drawGradient(const tools::PolyPolygon& rPolyPoly,
...
@@ -1384,6 +1386,7 @@ bool OpenGLSalGraphicsImpl::drawGradient(const tools::PolyPolygon& rPolyPoly,
glEnable
(
GL_STENCIL_TEST
);
glEnable
(
GL_STENCIL_TEST
);
glStencilFunc
(
GL_EQUAL
,
2
,
0xFF
);
glStencilFunc
(
GL_EQUAL
,
2
,
0xFF
);
}
}
#endif
// if border >= 100%, draw solid rectangle with start color
// if border >= 100%, draw solid rectangle with start color
if
(
rGradient
.
GetBorder
()
>=
100.0
)
if
(
rGradient
.
GetBorder
()
>=
100.0
)
...
@@ -1408,8 +1411,10 @@ bool OpenGLSalGraphicsImpl::drawGradient(const tools::PolyPolygon& rPolyPoly,
...
@@ -1408,8 +1411,10 @@ bool OpenGLSalGraphicsImpl::drawGradient(const tools::PolyPolygon& rPolyPoly,
DrawRadialGradient
(
rGradient
,
aBoundRect
);
DrawRadialGradient
(
rGradient
,
aBoundRect
);
}
}
#if FIXME_BROKEN_STENCIL_FOR_GRADIENTS
if
(
!
mbUseStencil
)
if
(
!
mbUseStencil
)
glDisable
(
GL_STENCIL_TEST
);
glDisable
(
GL_STENCIL_TEST
);
#endif
PostDraw
();
PostDraw
();
CHECK_GL_ERROR
();
CHECK_GL_ERROR
();
...
...
vcl/workben/vcldemo.cxx
Dosyayı görüntüle @
b7d74366
...
@@ -200,6 +200,7 @@ public:
...
@@ -200,6 +200,7 @@ public:
void
drawBackground
(
OutputDevice
&
rDev
,
Rectangle
r
)
void
drawBackground
(
OutputDevice
&
rDev
,
Rectangle
r
)
{
{
rDev
.
Erase
();
Gradient
aGradient
;
Gradient
aGradient
;
aGradient
.
SetStartColor
(
COL_BLUE
);
aGradient
.
SetStartColor
(
COL_BLUE
);
aGradient
.
SetEndColor
(
COL_GREEN
);
aGradient
.
SetEndColor
(
COL_GREEN
);
...
...
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