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
818a0ed6
Kaydet (Commit)
818a0ed6
authored
Nis 30, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#77126 BitmapEx.Scale already takes care of mirroring
Change-Id: I320a5ec1da62cc1a8b3cb227298ecaf99f305a6f
üst
ae4e79e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
bitmap.cxx
vcl/source/outdev/bitmap.cxx
+7
-3
No files found.
vcl/source/outdev/bitmap.cxx
Dosyayı görüntüle @
818a0ed6
...
...
@@ -501,12 +501,16 @@ void OutputDevice::DrawDeviceBitmap( const Point& rDestPt, const Size& rDestSize
// we have beautiful scaling algorithms, let's use them
if
(
aDestSizePixel
!=
rSrcSizePixel
&&
rSrcSizePixel
.
Width
()
!=
0
&&
rSrcSizePixel
.
Height
()
!=
0
)
{
double
fScaleX
=
double
(
aDestSizePixel
.
Width
())
/
rSrcSizePixel
.
Width
(
);
double
fScaleY
=
double
(
aDestSizePixel
.
Height
())
/
rSrcSizePixel
.
Height
(
);
double
fScaleX
=
std
::
abs
(
aDestSizePixel
.
Width
()
/
double
(
rSrcSizePixel
.
Width
())
);
double
fScaleY
=
std
::
abs
(
aDestSizePixel
.
Height
()
/
double
(
rSrcSizePixel
.
Height
())
);
aScaledBitmapEx
.
Scale
(
fScaleX
,
fScaleY
);
aSrcSizePixel
=
aDestSizePixel
;
// Negative size values are used for mirroring, but Scale already takes
// care of mirroring so convert all negative values to positive.
aSrcSizePixel
=
Size
(
std
::
abs
(
aDestSizePixel
.
Width
()),
std
::
abs
(
aDestSizePixel
.
Height
()));
aSrcPtPixel
.
X
()
=
rSrcPtPixel
.
X
()
*
fScaleX
;
aSrcPtPixel
.
Y
()
=
rSrcPtPixel
.
Y
()
*
fScaleY
;
}
...
...
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