Commit d4721464 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

npapi: Return vlc.video.fullscreen as a boolean

refs #14500
parent 301bf552
......@@ -108,7 +108,7 @@ public:
virtual void toggle_fullscreen() = 0;
virtual void set_fullscreen(int) = 0;
virtual int get_fullscreen() = 0;
virtual bool get_fullscreen() = 0;
virtual void set_toolbar_visible(bool) = 0;
virtual bool get_toolbar_visible() = 0;
......
......@@ -121,7 +121,7 @@ void VlcPluginGtk::set_fullscreen(int yes)
}
}
int VlcPluginGtk::get_fullscreen()
bool VlcPluginGtk::get_fullscreen()
{
return is_fullscreen;
}
......
......@@ -44,7 +44,7 @@ public:
void toggle_fullscreen();
void set_fullscreen(int);
int get_fullscreen();
bool get_fullscreen();
void do_set_fullscreen(bool);
void set_toolbar_visible(bool);
......
......@@ -38,7 +38,7 @@ public:
void toggle_fullscreen();
void set_fullscreen( int );
int get_fullscreen();
bool get_fullscreen();
bool create_windows();
bool resize_windows();
......
......@@ -255,7 +255,7 @@ void VlcPluginMac::set_fullscreen(int i_value)
this->update_controls();
}
int VlcPluginMac::get_fullscreen()
bool VlcPluginMac::get_fullscreen()
{
return libvlc_get_fullscreen(getMD());
}
......
......@@ -137,7 +137,7 @@ void VlcPluginWin::set_fullscreen(int yes)
}
}
int VlcPluginWin::get_fullscreen()
bool VlcPluginWin::get_fullscreen()
{
return _WindowsManager.IsFullScreen();
}
......
......@@ -41,7 +41,7 @@ public:
void toggle_fullscreen();
void set_fullscreen( int );
int get_fullscreen();
bool get_fullscreen();
bool create_windows();
bool resize_windows();
......
......@@ -60,7 +60,7 @@ void VlcPluginXcb::set_fullscreen(int yes)
player().get_mp().setFullscreen( yes );
}
int VlcPluginXcb::get_fullscreen()
bool VlcPluginXcb::get_fullscreen()
{
if (player().mlp().isPlaying())
return player().get_mp().fullscreen();
......
......@@ -36,7 +36,7 @@ public:
void toggle_fullscreen();
void set_fullscreen( int );
int get_fullscreen();
bool get_fullscreen();
bool create_windows();
bool resize_windows();
......
......@@ -70,7 +70,7 @@ public:
void toggle_fullscreen() { /* STUB */ }
void set_fullscreen( int ) { /* STUB */ }
int get_fullscreen() { return false; }
bool get_fullscreen() { return false; }
void set_toolbar_visible(bool) { /* STUB */ }
bool get_toolbar_visible() { return false; }
......
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