[vlc-commits] npapi win32: fixed VlcPluginWin fullscreen member functions
Sergey Radionov
git at videolan.org
Wed Dec 21 12:54:11 CET 2011
npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Mon Dec 12 10:48:22 2011 +0700| [9828de08eca8b76684e1011ea0aaf2364bdf32f2] | committer: Jean-Baptiste Kempf
npapi win32: fixed VlcPluginWin fullscreen member functions
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=9828de08eca8b76684e1011ea0aaf2364bdf32f2
---
npapi/vlcplugin_win.cpp | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/npapi/vlcplugin_win.cpp b/npapi/vlcplugin_win.cpp
index 358a746..de71019 100644
--- a/npapi/vlcplugin_win.cpp
+++ b/npapi/vlcplugin_win.cpp
@@ -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()
More information about the vlc-commits
mailing list