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
f4a2c604
Kaydet (Commit)
f4a2c604
authored
Agu 06, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#92982 vcl rendercontext: fix missing background repaint of Edit
Change-Id: Ic45f65d10835eb39b6709e7adeed1392905ea631
üst
21531da5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
12 deletions
+21
-12
edit.cxx
vcl/source/control/edit.cxx
+21
-0
paint.cxx
vcl/source/window/paint.cxx
+0
-12
No files found.
vcl/source/control/edit.cxx
Dosyayı görüntüle @
f4a2c604
...
@@ -1034,6 +1034,27 @@ void Edit::ImplClearBackground(vcl::RenderContext& rRenderContext, long nXStart,
...
@@ -1034,6 +1034,27 @@ void Edit::ImplClearBackground(vcl::RenderContext& rRenderContext, long nXStart,
if
(
!
(
ImplUseNativeBorder
(
rRenderContext
,
GetStyle
())
||
IsPaintTransparent
()))
if
(
!
(
ImplUseNativeBorder
(
rRenderContext
,
GetStyle
())
||
IsPaintTransparent
()))
rRenderContext
.
Erase
(
aRect
);
rRenderContext
.
Erase
(
aRect
);
else
if
(
SupportsDoubleBuffering
()
&&
mbIsSubEdit
)
{
// ImplPaintBorder() is a NOP, we have a native border, and this is a sub-edit of a control.
// That means we have to draw the parent native widget to paint the edit area to clear our background.
long
nLeft
=
mnXOffset
+
ImplGetExtraXOffset
();
long
nTop
=
ImplGetTextYPosition
();
long
nRight
=
GetOutputWidthPixel
();
long
nHeight
=
GetTextHeight
();
Rectangle
aEditArea
(
nLeft
,
nTop
,
nRight
,
nTop
+
nHeight
);
ControlType
aCtrlType
=
ImplGetNativeControlType
();
ControlPart
aCtrlPart
=
PART_ENTIRE_CONTROL
;
Rectangle
aCtrlRegion
(
0
,
0
,
GetParent
()
->
GetOutputWidthPixel
(),
GetParent
()
->
GetOutputHeightPixel
());
ControlState
nState
=
ControlState
::
ENABLED
;
ImplControlValue
aControlValue
;
rRenderContext
.
Push
(
PushFlags
::
CLIPREGION
);
rRenderContext
.
SetClipRegion
(
vcl
::
Region
(
aEditArea
));
rRenderContext
.
DrawNativeControl
(
aCtrlType
,
aCtrlPart
,
aCtrlRegion
,
nState
,
aControlValue
,
OUString
());
rRenderContext
.
Pop
();
}
}
}
void
Edit
::
ImplPaintBorder
(
vcl
::
RenderContext
&
rRenderContext
,
long
nXStart
,
long
nXEnd
)
void
Edit
::
ImplPaintBorder
(
vcl
::
RenderContext
&
rRenderContext
,
long
nXStart
,
long
nXEnd
)
...
...
vcl/source/window/paint.cxx
Dosyayı görüntüle @
f4a2c604
...
@@ -190,18 +190,6 @@ void PaintHelper::StartBufferedPaint()
...
@@ -190,18 +190,6 @@ void PaintHelper::StartBufferedPaint()
ImplFrameData
*
pFrameData
=
m_pWindow
->
mpWindowImpl
->
mpFrameData
;
ImplFrameData
*
pFrameData
=
m_pWindow
->
mpWindowImpl
->
mpFrameData
;
assert
(
!
pFrameData
->
mbInBufferedPaint
);
assert
(
!
pFrameData
->
mbInBufferedPaint
);
// Instead of creating a new VirtualDevice, just erase the area we'll be
// painting over, as VirtualDevice::ImplInitVirDev() would do.
// The painted area is m_aPaintRect, or in case it's empty, then the whole window.
pFrameData
->
mpBuffer
->
SetBackground
(
Wallpaper
(
Color
(
COL_WHITE
)));
{
PaintBufferGuard
g
(
pFrameData
,
m_pWindow
);
if
(
m_aPaintRect
.
IsEmpty
())
pFrameData
->
mpBuffer
->
Erase
(
Rectangle
(
Point
(
0
,
0
),
m_pWindow
->
GetOutputSize
()));
else
pFrameData
->
mpBuffer
->
Erase
(
m_aPaintRect
);
}
pFrameData
->
mbInBufferedPaint
=
true
;
pFrameData
->
mbInBufferedPaint
=
true
;
m_bStartedBufferedPaint
=
true
;
m_bStartedBufferedPaint
=
true
;
}
}
...
...
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