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
6f221adc
Kaydet (Commit)
6f221adc
authored
Eki 04, 2012
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Improve quality of page previews in Impress/Draw with supersampling
Change-Id: I9c5b28fc32b73b2147162f74919b21d99401b501
üst
1e6985da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
SlsBitmapFactory.cxx
sd/source/ui/slidesorter/cache/SlsBitmapFactory.cxx
+6
-8
SlsGenericPageCache.cxx
sd/source/ui/slidesorter/cache/SlsGenericPageCache.cxx
+2
-2
SlideSorterView.cxx
sd/source/ui/slidesorter/view/SlideSorterView.cxx
+1
-1
No files found.
sd/source/ui/slidesorter/cache/SlsBitmapFactory.cxx
Dosyayı görüntüle @
6f221adc
...
...
@@ -41,10 +41,6 @@
#include <vcl/bmpacc.hxx>
#include <vcl/pngwrite.hxx>
const
static
sal_Int32
gnSuperSampleFactor
(
2
);
const
static
bool
gbAllowSuperSampling
(
false
);
namespace
sd
{
namespace
slidesorter
{
namespace
view
{
class
SlideSorterView
;
class
PageObjectViewObjectContact
;
...
...
@@ -73,10 +69,12 @@ Bitmap BitmapFactory::CreateBitmap (
const
bool
bDoSuperSampling
)
{
Size
aSize
(
rPixelSize
);
if
(
bDoSuperSampling
&&
gbAllowSuperSampling
)
if
(
bDoSuperSampling
)
{
aSize
.
Width
()
*=
gnSuperSampleFactor
;
aSize
.
Height
()
*=
gnSuperSampleFactor
;
// Supersampling factor
int
aSuperSamplingFactor
=
2
;
aSize
.
Width
()
*=
aSuperSamplingFactor
;
aSize
.
Height
()
*=
aSuperSamplingFactor
;
}
Bitmap
aPreview
(
maRenderer
.
RenderPage
(
...
...
@@ -85,7 +83,7 @@ Bitmap BitmapFactory::CreateBitmap (
String
(),
true
,
false
).
GetBitmapEx
().
GetBitmap
());
if
(
bDoSuperSampling
&&
gbAllowSuperSampling
)
if
(
bDoSuperSampling
)
{
aPreview
.
Scale
(
rPixelSize
,
BMP_SCALE_BEST
);
}
...
...
sd/source/ui/slidesorter/cache/SlsGenericPageCache.cxx
Dosyayı görüntüle @
6f221adc
...
...
@@ -147,7 +147,7 @@ Bitmap GenericPageCache::GetPreviewBitmap (
// i.e. the bitmap is not empty.
if
(
bResize
&&
aBitmapSize
.
Width
()
>
0
&&
aBitmapSize
.
Height
()
>
0
)
{
aPreview
.
Scale
(
maPreviewSize
,
BMP_SCALE_FAST
);
aPreview
.
Scale
(
maPreviewSize
);
}
bMayBeUpToDate
=
false
;
}
...
...
@@ -184,7 +184,7 @@ Bitmap GenericPageCache::GetMarkedPreviewBitmap (
// i.e. the bitmap is not empty.
if
(
aBitmapSize
.
Width
()
>
0
&&
aBitmapSize
.
Height
()
>
0
)
{
aMarkedPreview
.
Scale
(
maPreviewSize
,
BMP_SCALE_FAST
);
aMarkedPreview
.
Scale
(
maPreviewSize
);
}
}
...
...
sd/source/ui/slidesorter/view/SlideSorterView.cxx
Dosyayı görüntüle @
6f221adc
...
...
@@ -819,7 +819,7 @@ void SlideSorterView::ConfigurationChanged (
mpPreviewCache
.
reset
(
new
cache
::
PageCache
(
mpLayouter
->
GetPageObjectSize
(),
fals
e
,
tru
e
,
cache
::
SharedCacheContext
(
new
ViewCacheContext
(
mrSlideSorter
))));
}
...
...
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