[vlc-commits] Mac plugin: match window with fullscreen state

David Fuhrmann git at videolan.org
Tue Jan 28 15:16:12 CET 2014


npapi-vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Tue Jan 28 15:13:43 2014 +0100| [38be77b8bf90deb62535f0771853332bf2b00ade] | committer: David Fuhrmann

Mac plugin: match window with fullscreen state

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=38be77b8bf90deb62535f0771853332bf2b00ade
---

 npapi/vlcplugin_mac.mm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/npapi/vlcplugin_mac.mm b/npapi/vlcplugin_mac.mm
index 4aa090e..13b4136 100644
--- a/npapi/vlcplugin_mac.mm
+++ b/npapi/vlcplugin_mac.mm
@@ -147,7 +147,7 @@ void VlcPluginMac::toggle_fullscreen()
     libvlc_toggle_fullscreen(getMD());
     this->update_controls();
 
-    if (get_fullscreen() == 0) {
+    if (get_fullscreen() != 0) {
         if (!fullscreenWindow) {
             /* this window is kind of useless. however, we need to support 10.5, since enterFullScreenMode depends on the
              * existance of a parent window. This is solved in 10.6 and we should remove the window once we require it. */



More information about the vlc-commits mailing list