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
342ebf4c
Kaydet (Commit)
342ebf4c
authored
Ock 30, 2014
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i12355 Allow 1bit masks for all OSes except Linux (see i122485)
üst
55aeb4eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
canvascustomsprite.cxx
canvas/source/vcl/canvascustomsprite.cxx
+8
-1
spritehelper.cxx
canvas/source/vcl/spritehelper.cxx
+7
-1
No files found.
canvas/source/vcl/canvascustomsprite.cxx
Dosyayı görüntüle @
342ebf4c
...
@@ -81,7 +81,14 @@ namespace vclcanvas
...
@@ -81,7 +81,14 @@ namespace vclcanvas
pBackBuffer
->
setSize
(
aSize
);
pBackBuffer
->
setSize
(
aSize
);
// create mask backbuffer, with one bit color depth #122485# use full depth to avoid problem with 1bit depth, get AAed masks
// create mask backbuffer, with one bit color depth #122485# use full depth to avoid problem with 1bit depth, get AAed masks
BackBufferSharedPtr
pBackBufferMask
(
new
BackBuffer
(
rOutDevProvider
->
getOutDev
()
)
);
// , true ) ); // #122485#
BackBufferSharedPtr
pBackBufferMask
(
#if defined LINUX || defined FREEBSD || defined NETBSD
// #122485# no 1bit buffers on Linuxes, 1bit Vdev seems to work no longer
new
BackBuffer
(
rOutDevProvider
->
getOutDev
()
)
);
#else
// 1bit mask buffer for all others
new
BackBuffer
(
rOutDevProvider
->
getOutDev
(),
true
)
);
#endif
pBackBufferMask
->
setSize
(
aSize
);
pBackBufferMask
->
setSize
(
aSize
);
// TODO(F1): Implement alpha vdev (could prolly enable
// TODO(F1): Implement alpha vdev (could prolly enable
...
...
canvas/source/vcl/spritehelper.cxx
Dosyayı görüntüle @
342ebf4c
...
@@ -159,7 +159,13 @@ namespace vclcanvas
...
@@ -159,7 +159,13 @@ namespace vclcanvas
// bitmasks are much faster than alphamasks on some platforms
// bitmasks are much faster than alphamasks on some platforms
// so convert to bitmask if useful
// so convert to bitmask if useful
#ifndef QUARTZ
#if defined LINUX || defined FREEBSD || defined NETBSD || defined QUARTZ
// #122485# allow more than 1bit masks for Linux and Mac,
// but reduce to mono now
aMask
.
MakeMono
(
255
);
#else
// #122485# assert when mask uses more than 1bit and reduce
// to mono
if
(
aMask
.
GetBitCount
()
!=
1
)
if
(
aMask
.
GetBitCount
()
!=
1
)
{
{
OSL_ENSURE
(
false
,
OSL_ENSURE
(
false
,
...
...
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