msg_Warn( p_vout, "could not blit surface (error %li)", dxresult );
return;
}
+ else
+ {
+ /* if set, remove the black brush to avoid flickering in repaint operations */
+ if( 0UL != GetClassLong( p_vout->p_sys->hvideownd, GCL_HBRBACKGROUND) )
+ {
+ SetClassLong(p_vout->p_sys->hvideownd, GCL_HBRBACKGROUND, (ULONG)0UL);
+ }
+ }
}
else /* using overlay */
return;
}
DirectXUnlockSurface( p_vout, p_pic );
-
- /* if set, remove the black brush to avoid flickering in repaint operations */
- if( 0UL != GetClassLong( p_vout->p_sys->hvideownd, GCL_HBRBACKGROUND) )
- {
- SetClassLong(p_vout->p_sys->hvideownd, GCL_HBRBACKGROUND, (ULONG)0UL);
- }
}
}