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
c63324e0
Kaydet (Commit)
c63324e0
authored
Ara 20, 2013
tarafından
Keith Curtis
Kaydeden (comit)
Jan Holesovsky
Ara 20, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
hidpi: Nicer painting of the waved lines.
Change-Id: I8773b47967bc1aa8cf33b9a1edc4f826291d3554
üst
c3bd4353
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
outdev3.cxx
vcl/source/gdi/outdev3.cxx
+17
-5
No files found.
vcl/source/gdi/outdev3.cxx
Dosyayı görüntüle @
c63324e0
...
@@ -5306,6 +5306,18 @@ void OutputDevice::DrawWaveLine( const Point& rStartPos, const Point& rEndPos,
...
@@ -5306,6 +5306,18 @@ void OutputDevice::DrawWaveLine( const Point& rStartPos, const Point& rEndPos,
nWaveHeight = 3;
nWaveHeight = 3;
nStartY++;
nStartY++;
nEndY++;
nEndY++;
if (mnDPIScaleFactor > 1)
{
nStartY++; //Shift down an additional pixel to create more visual separation.
nWaveHeight *= mnDPIScaleFactor;
//5 pixels looks better than 6.
if (mnDPIScaleFactor == 2 && nWaveHeight == 6)
{
nWaveHeight = 5;
}
}
}
}
else if( nStyle == WAVE_SMALL )
else if( nStyle == WAVE_SMALL )
{
{
...
@@ -5316,13 +5328,13 @@ void OutputDevice::DrawWaveLine( const Point& rStartPos, const Point& rEndPos,
...
@@ -5316,13 +5328,13 @@ void OutputDevice::DrawWaveLine( const Point& rStartPos, const Point& rEndPos,
else // WAVE_FLAT
else // WAVE_FLAT
nWaveHeight = 1;
nWaveHeight = 1;
// #109280# make sure the waveline does not exceed the descent to avoid paint problems
// #109280# make sure the waveline does not exceed the descent to avoid paint problems
ImplFontEntry* pFontEntry = mpFontEntry;
ImplFontEntry* pFontEntry = mpFontEntry;
if( nWaveHeight > pFontEntry->maMetric.mnWUnderlineSize )
if( nWaveHeight > pFontEntry->maMetric.mnWUnderlineSize )
nWaveHeight = pFontEntry->maMetric.mnWUnderlineSize;
nWaveHeight = pFontEntry->maMetric.mnWUnderlineSize;
ImplDrawWaveLine(nStartX, nStartY, 0, 0,
ImplDrawWaveLine(nStartX, nStartY, 0, 0,
nEndX-nStartX, nWaveHeight
* mnDPIScaleFactor
,
nEndX-nStartX, nWaveHeight,
mnDPIScaleFactor, nOrientation, GetLineColor());
mnDPIScaleFactor, nOrientation, GetLineColor());
if( mpAlphaVDev )
if( mpAlphaVDev )
...
...
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