]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/commands/cmd_resize.cpp
* all: added an attribute "autoresize" to the Video control.
[vlc] / modules / gui / skins2 / commands / cmd_resize.cpp
index b9dbe483004c650d8fa8a050616e15814f127c42..f04a95f5084bc994181fe4826d177226b282231a 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "cmd_resize.hpp"
 #include "../src/generic_layout.hpp"
+#include "../src/vlcproc.hpp"
 
 
 CmdResize::CmdResize( intf_thread_t *pIntf, GenericLayout &rLayout, int width,
@@ -51,8 +52,7 @@ CmdResizeVout::CmdResizeVout( intf_thread_t *pIntf, void *pWindow, int width,
 
 void CmdResizeVout::execute()
 {
-    // TODO
-    msg_Dbg( getIntf(), "New vout size requested: %d x %d", m_width,
-             m_height );
+    VarBox &rVoutSize = VlcProc::instance( getIntf() )->getVoutSizeVar();
+    rVoutSize.setSize( m_width, m_height );
 }