summaryrefslogtreecommitdiffstats
path: root/vcl/headless
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-01-28 00:02:35 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-01-28 00:04:56 +0000
commitf231418c5ba9bed32a4058ba0a9cdcfb16bb2ee4 (patch)
tree4f9eb34905f025ff6319ce7bdcf5eee03a3a54f7 /vcl/headless
parentDrop accidental #include (diff)
downloadcore-f231418c5ba9bed32a4058ba0a9cdcfb16bb2ee4.tar.gz
core-f231418c5ba9bed32a4058ba0a9cdcfb16bb2ee4.zip
android: unwind horrific event dispatching bug causing all the grief.
Diffstat (limited to 'vcl/headless')
-rw-r--r--vcl/headless/svpframe.cxx3
-rw-r--r--vcl/headless/svpinst.cxx2
2 files changed, 3 insertions, 2 deletions
diff --git a/vcl/headless/svpframe.cxx b/vcl/headless/svpframe.cxx
index 56869c245c8f..89744ae3679f 100644
--- a/vcl/headless/svpframe.cxx
+++ b/vcl/headless/svpframe.cxx
@@ -150,11 +150,12 @@ sal_Bool SvpSalFrame::PostEvent( void* pData )
return sal_True;
}
-void SvpSalFrame::PostPaint() const
+void SvpSalFrame::PostPaint(bool bImmediate) const
{
if( m_bVisible )
{
SalPaintEvent aPEvt(0, 0, maGeometry.nWidth, maGeometry.nHeight);
+ aPEvt.mbImmediateUpdate = bImmediate;
CallCallback( SALEVENT_PAINT, &aPEvt );
}
}
diff --git a/vcl/headless/svpinst.cxx b/vcl/headless/svpinst.cxx
index 56ea818af6bc..e330dcbc469d 100644
--- a/vcl/headless/svpinst.cxx
+++ b/vcl/headless/svpinst.cxx
@@ -301,7 +301,7 @@ void SvpSalInstance::Yield( bool bWait, bool bHandleAllCurrentEvents )
{
// this would be a good time to post a paint
const SvpSalFrame* pSvpFrame = static_cast<const SvpSalFrame*>(it->m_pFrame);
- pSvpFrame->PostPaint();
+ pSvpFrame->PostPaint(false);
}
}
}