Paint bugfix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1639,12 +1639,15 @@ void wxAMMediaEvtHandler::OnPaint(wxPaintEvent& WXUNUSED(evt))
|
|||||||
{
|
{
|
||||||
wxAMMediaBackend* pThis = (wxAMMediaBackend*) this;
|
wxAMMediaBackend* pThis = (wxAMMediaBackend*) this;
|
||||||
wxPaintDC dc(pThis->m_ctrl);
|
wxPaintDC dc(pThis->m_ctrl);
|
||||||
|
if( pThis->m_pVMC )
|
||||||
|
{
|
||||||
if( pThis->m_pVMC->RepaintVideo((HWND)pThis->m_ctrl->GetHandle(),
|
if( pThis->m_pVMC->RepaintVideo((HWND)pThis->m_ctrl->GetHandle(),
|
||||||
(HDC)dc.GetHDC()) != 0 )
|
(HDC)dc.GetHDC()) != 0 )
|
||||||
{
|
{
|
||||||
wxASSERT(false);
|
wxASSERT(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// End of wxAMMediaBackend
|
// End of wxAMMediaBackend
|
||||||
|
Reference in New Issue
Block a user