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
4478145e
Kaydet (Commit)
4478145e
authored
Nis 06, 2013
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add comments to some questionable code
Change-Id: I06121b065f360ecfeddb25c9e1487f4849e453a2
üst
ca9ceb20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
salatslayout.cxx
vcl/aqua/source/gdi/atsui/salatslayout.cxx
+14
-1
No files found.
vcl/aqua/source/gdi/atsui/salatslayout.cxx
Dosyayı görüntüle @
4478145e
...
@@ -452,6 +452,13 @@ void ATSLayout::DrawText( SalGraphics& rGraphics ) const
...
@@ -452,6 +452,13 @@ void ATSLayout::DrawText( SalGraphics& rGraphics ) const
}
}
}
}
#if 1
// I am not sure at all if this code actually is needed; putting
// it in #if 0 didn't seem to cause any immediately visible bad
// effect. Aybody know? But I guess, better safe than sorry, so
// let's keep it in for now. This ATSUI-using code is destined for
// the bin anyway...
// request an update of the changed window area
// request an update of the changed window area
if
(
rAquaGraphics
.
IsWindowGraphics
()
)
if
(
rAquaGraphics
.
IsWindowGraphics
()
)
{
{
...
@@ -462,6 +469,12 @@ void ATSLayout::DrawText( SalGraphics& rGraphics ) const
...
@@ -462,6 +469,12 @@ void ATSLayout::DrawText( SalGraphics& rGraphics ) const
{
{
// FIXME: transformation from baseline to top left
// FIXME: transformation from baseline to top left
// with the simple approach below we invalidate too much
// with the simple approach below we invalidate too much
// Indeed, this simply triples the rectangle's height,
// enlarging it on top and bottom with its old height!? Is
// that really necessary? (Sure, it can't harm, but it
// seems silly. But OTOH, see comment above.)
short
d
=
drawRect
.
bottom
-
drawRect
.
top
;
short
d
=
drawRect
.
bottom
-
drawRect
.
top
;
drawRect
.
top
-=
d
;
drawRect
.
top
-=
d
;
drawRect
.
bottom
+=
d
;
drawRect
.
bottom
+=
d
;
...
@@ -472,7 +485,7 @@ void ATSLayout::DrawText( SalGraphics& rGraphics ) const
...
@@ -472,7 +485,7 @@ void ATSLayout::DrawText( SalGraphics& rGraphics ) const
rAquaGraphics
.
RefreshRect
(
aRect
);
rAquaGraphics
.
RefreshRect
(
aRect
);
}
}
}
}
#endif
// restore the original graphic context transformations
// restore the original graphic context transformations
CGContextRestoreGState
(
rAquaGraphics
.
mrContext
);
CGContextRestoreGState
(
rAquaGraphics
.
mrContext
);
}
}
...
...
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