/// Give access to the visibility variable
VarBool &getVisibleVar() { return m_varVisible; }
+ /// Window type, mainly useful when overloaded (for VoutWindow)
+ virtual string getType() const { return "Generic"; }
+
protected:
/// Get the OS window
OSWindow *getOSWindow() const { return m_pOsWindow; }
/// Refresh an area of the window
virtual void refresh( int left, int top, int width, int height );
+ virtual string getType() const { return "Vout"; }
+
private:
/// Image when there is no video
OSGraphics *m_pImage;
Infos.rcPaint.right - Infos.rcPaint.left + 1,
Infos.rcPaint.bottom - Infos.rcPaint.top + 1 );
EndPaint( msg.hwnd, &Infos );
- win.processEvent( evt );
+ // Ignore all the painting events for the vout window,
+ // otherwise we are going to screw up the colorkey
+ if( win.getType() != "Vout" )
+ {
+ win.processEvent( evt );
+ }
break;
}
case WM_MOUSEMOVE: