Commit 9828de08 authored by Sergey Radionov's avatar Sergey Radionov Committed by Jean-Baptiste Kempf

npapi win32: fixed VlcPluginWin fullscreen member functions

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 64771818
......@@ -101,22 +101,22 @@ void VlcPluginWin::set_player_window()
void VlcPluginWin::toggle_fullscreen()
{
if (playlist_isplaying())
libvlc_toggle_fullscreen(libvlc_media_player);
_WindowsManager.ToggleFullScreen();
}
void VlcPluginWin::set_fullscreen(int yes)
{
if (playlist_isplaying())
libvlc_set_fullscreen(libvlc_media_player,yes);
if(yes){
_WindowsManager.StartFullScreen();
}
else{
_WindowsManager.EndFullScreen();
}
}
int VlcPluginWin::get_fullscreen()
{
int r = 0;
if (playlist_isplaying())
r = libvlc_get_fullscreen(libvlc_media_player);
return r;
return _WindowsManager.IsFullScreen();
}
void VlcPluginWin::show_toolbar()
......
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