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
dca9978f
Kaydet (Commit)
dca9978f
authored
Mar 03, 2013
tarafından
Armin Le Grand
Kaydeden (comit)
Tomaž Vajngerl
Mar 03, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
121687# better preview
Change-Id: I7beca0f3d809e5a2ab3d8ef6c73b970010a47eaf
üst
5f2592b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
printdlg.cxx
vcl/source/window/printdlg.cxx
+13
-2
No files found.
vcl/source/window/printdlg.cxx
Dosyayı görüntüle @
dca9978f
...
...
@@ -177,7 +177,7 @@ void PrintDialog::PrintPreviewWindow::Paint( const Rectangle& )
{
GDIMetaFile
aMtf
(
maMtf
);
Size
aVDevSize
(
maPageVDev
.
GetOutputSizePixel
()
);
const
Size
aVDevSize
(
maPageVDev
.
GetOutputSizePixel
()
);
const
Size
aLogicSize
(
maPageVDev
.
PixelToLogic
(
aVDevSize
,
MapMode
(
MAP_100TH_MM
)
)
);
Size
aOrigSize
(
maOrigSize
);
if
(
aOrigSize
.
Width
()
<
1
)
...
...
@@ -198,12 +198,23 @@ void PrintDialog::PrintPreviewWindow::Paint( const Rectangle& )
aMtf
.
WindStart
();
aMtf
.
Scale
(
fScale
,
fScale
);
aMtf
.
WindStart
();
const
sal_uInt16
nOriginalAA
(
maPageVDev
.
GetAntialiasing
());
maPageVDev
.
SetAntialiasing
(
nOriginalAA
|
ANTIALIASING_ENABLE_B2DDRAW
);
aMtf
.
Play
(
&
maPageVDev
,
Point
(
0
,
0
),
aLogicSize
);
maPageVDev
.
Pop
();
maPageVDev
.
SetAntialiasing
(
nOriginalAA
);
SetMapMode
(
MAP_PIXEL
);
maPageVDev
.
SetMapMode
(
MAP_PIXEL
);
DrawOutDev
(
aOffset
,
maPreviewSize
,
Point
(
0
,
0
),
aVDevSize
,
maPageVDev
);
// use lanzcos scaling
Bitmap
aContent
(
maPageVDev
.
GetBitmap
(
Point
(
0
,
0
),
aVDevSize
));
aContent
.
Scale
(
maPreviewSize
,
BMP_SCALE_BEST
);
DrawBitmap
(
aOffset
,
aContent
);
maPageVDev
.
SetDrawMode
(
nOldDrawMode
);
}
...
...
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