if( !isVisible() ) show();
resize( w, h );
emit sizeChanged( w, h );
+ /* Work-around a bug?misconception? that would happen when vout core resize
+ twice to the same size and would make the vout not centered.
+ This cause a small flicker.
+ See #3621
+ */
+ if( size().width() == w && size().height() == h )
+ updateGeometry();
videoSync();
}
}
reparentable->setParent( NULL, newflags );
reparentable->setWindowState( newstate );
+
+ /* FIXME: inherit from the vout window, not the interface */
+ char *title = var_InheritString( p_intf, "video-title" );
+ reparentable->setWindowTitle( qfu(title ? title : _("Video")) );
+ free( title );
+
reparentable->show();
}
else
}
else if( event->type() == QEvent::Wheel )
{
- int i_vlckey = qtWheelEventToVLCKey( static_cast<QWheelEvent *>( event) );
+ int i_vlckey = qtWheelEventToVLCKey( static_cast<QWheelEvent *>(event) );
var_SetInteger( p_intf->p_libvlc, "key-pressed", i_vlckey );
- msg_Dbg( p_intf, "Here: %i", i_vlckey );
return true;
}
}
if( !url.isEmpty() && pix.load( url ) )
{
pix = pix.scaled( maximumWidth(), maximumHeight(),
- Qt::KeepAspectRatioByExpanding );
+ Qt::KeepAspectRatioByExpanding,
+ Qt::SmoothTransformation );
}
else
{