Commit 6b2960cf authored by Damien Fouilleul's avatar Damien Fouilleul

plugin.cpp: on activation, set width and height in VLC configuration variables...

plugin.cpp: on activation, set width and height in VLC configuration variables with plugin actual geometry, this prevents video rescaling when starting video
parent 91aa2047
......@@ -781,9 +781,9 @@ HRESULT VLCPlugin::onActivateInPlace(LPMSG lpMesg, HWND hwndParent, LPCRECT lprc
/* set internal video width and height */
vlc_value_t val;
val.i_int = posRect.right-posRect.left;
VLC_VariableSet(_i_vlc, "width", val);
VLC_VariableSet(_i_vlc, "conf::width", val);
val.i_int = posRect.bottom-posRect.top;
VLC_VariableSet(_i_vlc, "height", val);
VLC_VariableSet(_i_vlc, "conf::height", val);
/* set internal video parent window */
/* horrible cast there */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment