[vlc-commits] commit: skins2: default width/height to -1 (undefined) and not 0 ( Erwan Tulou )
git at videolan.org
git at videolan.org
Mon Nov 8 15:17:36 CET 2010
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Mon Nov 8 11:56:53 2010 +0100| [e759ce5f6497f8ad3dc18c48b0faccfe0fb09798] | committer: Erwan Tulou
skins2: default width/height to -1 (undefined) and not 0
This fixes automatic resizing not working when a skin uses vlc.hasVout to monitor
video visibility. (in vlc12, the default skin belongs to this category)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e759ce5f6497f8ad3dc18c48b0faccfe0fb09798
---
modules/gui/skins2/src/vout_manager.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/gui/skins2/src/vout_manager.hpp b/modules/gui/skins2/src/vout_manager.hpp
index 643af52..3aa4eb1 100644
--- a/modules/gui/skins2/src/vout_manager.hpp
+++ b/modules/gui/skins2/src/vout_manager.hpp
@@ -44,7 +44,7 @@ class SavedWnd
{
public:
SavedWnd( vout_window_t* pWnd, VoutWindow* pVoutWindow = NULL,
- CtrlVideo* pCtrlVideo = NULL, int height = 0, int width = 0 )
+ CtrlVideo* pCtrlVideo = NULL, int height = -1, int width = -1 )
: pWnd( pWnd ), pVoutWindow( pVoutWindow ),
pCtrlVideo( pCtrlVideo ), height( height ), width( width ) { }
~SavedWnd() { }
More information about the vlc-commits
mailing list