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
e5dd2e88
Kaydet (Commit)
e5dd2e88
authored
Tem 24, 2014
tarafından
Andrzej Hunt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
We're using the same rectangle for both calls, let's reuse it.
Change-Id: I884832fc92e0fe9c10711d9fdaf103076a05f721
üst
bfad9f5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
viewsh.cxx
sw/source/core/view/viewsh.cxx
+5
-2
No files found.
sw/source/core/view/viewsh.cxx
Dosyayı görüntüle @
e5dd2e88
...
@@ -1785,6 +1785,9 @@ void SwViewShell::PaintTile(VirtualDevice &rDevice, int contextWidth, int contex
...
@@ -1785,6 +1785,9 @@ void SwViewShell::PaintTile(VirtualDevice &rDevice, int contextWidth, int contex
Imp
()
->
GetDrawView
()
->
AddWindowToPaintView
(
&
rDevice
);
Imp
()
->
GetDrawView
()
->
AddWindowToPaintView
(
&
rDevice
);
}
}
Rectangle
aOutRect
=
Rectangle
(
Point
(
tilePosX
,
tilePosY
),
rDevice
.
PixelToLogic
(
Size
(
contextWidth
,
contextHeight
)));
// Make the requested area visible -- we can't use MakeVisible as that will
// Make the requested area visible -- we can't use MakeVisible as that will
// only scroll the contents, but won't zoom/resize if needed.
// only scroll the contents, but won't zoom/resize if needed.
// Without this, items/text that are outside the visible area (in the SwView)
// Without this, items/text that are outside the visible area (in the SwView)
...
@@ -1792,10 +1795,10 @@ void SwViewShell::PaintTile(VirtualDevice &rDevice, int contextWidth, int contex
...
@@ -1792,10 +1795,10 @@ void SwViewShell::PaintTile(VirtualDevice &rDevice, int contextWidth, int contex
// tiledrendering app, or the gtktiledviewer) -- although ultimately we
// tiledrendering app, or the gtktiledviewer) -- although ultimately we
// probably want to fix things so that the SwView's area doesn't affect
// probably want to fix things so that the SwView's area doesn't affect
// tiled rendering?
// tiled rendering?
VisPortChgd
(
SwRect
(
Point
(
tilePosX
,
tilePosY
),
rDevice
.
PixelToLogic
(
Size
(
contextWidth
,
contextHeight
))
));
VisPortChgd
(
SwRect
(
aOutRect
));
// draw - works in logic coordinates
// draw - works in logic coordinates
Paint
(
Rectangle
(
Point
(
tilePosX
,
tilePosY
),
rDevice
.
PixelToLogic
(
Size
(
contextWidth
,
contextHeight
)))
);
Paint
(
aOutRect
);
// Remove this device in DrawLayer
// Remove this device in DrawLayer
if
(
Imp
()
->
GetDrawView
())
if
(
Imp
()
->
GetDrawView
())
...
...
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