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