<div dir="ltr">This closes ticket #7382.<br><br><br>---<br> modules/gui/qt4/components/simple_preferences.cpp | 1 +<br> modules/gui/qt4/ui/sprefs_subtitles.ui | 17 +++++++++++++++++<br> src/libvlc-module.c | 5 +++++<br>
src/video_output/display.c | 5 +++++<br> src/video_output/vout_intf.c | 4 ++++<br> 5 files changed, 32 insertions(+)<br><br>diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp<br>
index fd9fc60..d5ee52b 100644<br>--- a/modules/gui/qt4/components/simple_preferences.cpp<br>+++ b/modules/gui/qt4/components/simple_preferences.cpp<br>@@ -664,6 +664,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,<br>
outlineColor );<br> <br> CONFIG_GENERIC_NO_BOOL( "sub-margin", Integer, ui.subsPosLabel, subsPosition );<br>+ CONFIG_BOOL( "resize-msg", resizeMsg );<br>
<br> ui.shadowCheck->setChecked( config_GetInt( p_intf, "freetype-shadow-opacity" ) > 0 );<br> ui.backgroundCheck->setChecked( config_GetInt( p_intf, "freetype-background-opacity" ) > 0 );<br>
diff --git a/modules/gui/qt4/ui/sprefs_subtitles.ui b/modules/gui/qt4/ui/sprefs_subtitles.ui<br>index e3db352..4b32e89 100644<br>--- a/modules/gui/qt4/ui/sprefs_subtitles.ui<br>+++ b/modules/gui/qt4/ui/sprefs_subtitles.ui<br>
@@ -307,6 +307,22 @@<br> </layout><br> </widget><br> </item><br>+ <item><br>+ <widget class="QGroupBox" name="groupBox_4"><br>+ <property name="title"><br>
+ <string>Others</string><br>+ </property><br>+ <layout class="QGridLayout" name="gridLayout_3"><br>+ <item row="0" column="0"><br>+ <widget class="QCheckBox" name="resizeMsg"><br>
+ <property name="text"><br>+ <string>Show screen size on window resize</string><br>+ </property><br>+ </widget><br>+ </item><br>+ </layout><br>
+ </widget><br>+ </item><br> </layout><br> </widget><br> <tabstops><br>@@ -323,6 +339,7 @@<br> <tabstop>shadowCheck</tabstop><br> <tabstop>backgroundCheck</tabstop><br>
<tabstop>subsPosition</tabstop><br>+ <tabstop>resizeMsg</tabstop><br> </tabstops><br> <resources/><br> <connections/><br>diff --git a/src/libvlc-module.c b/src/libvlc-module.c<br>
index 83983bc..b5bb3e1 100644<br>--- a/src/libvlc-module.c<br>+++ b/src/libvlc-module.c<br>@@ -695,6 +695,9 @@ static const char *const ppsz_prefres[] = {<br> #define SUB_MARGIN_LONGTEXT N_( \<br> "You can use this option to place the subtitles under the movie, " \<br>
"instead of over the movie. Try several positions.")<br>+#define RESIZE_MSG_TEXT N_("Show screen size on resizing window")<br>+#define RESIZE_MSG_LONGTEXT N_( \<br>+ "If enabled, VLC will show screen size whenever you resize the window.")<br>
<br> #define SPU_TEXT N_("Enable sub-pictures")<br> #define SPU_LONGTEXT N_( \<br>@@ -1659,6 +1662,8 @@ vlc_module_begin ()<br> SUB_PATH_TEXT, SUB_PATH_LONGTEXT, true )<br> add_integer( "sub-margin", 0, SUB_MARGIN_TEXT,<br>
SUB_MARGIN_LONGTEXT, true )<br>+ add_bool( "resize-msg", false,<br>+ RESIZE_MSG_TEXT, RESIZE_MSG_LONGTEXT, false)<br> set_section( N_( "Overlays" ) , NULL )<br> add_module_list( "sub-source", "sub source", NULL,<br>
SUB_SOURCE_TEXT, SUB_SOURCE_LONGTEXT, false )<br>diff --git a/src/video_output/display.c b/src/video_output/display.c<br>index 0d20a56..f08bf1e 100644<br>--- a/src/video_output/display.c<br>+++ b/src/video_output/display.c<br>
@@ -33,6 +33,7 @@<br> #include <vlc_video_splitter.h><br> #include <vlc_vout_display.h><br> #include <vlc_vout.h><br>+#include <vlc_vout_osd.h><br> #include <vlc_block.h><br> #include <vlc_modules.h><br>
<br>@@ -640,6 +641,10 @@ static void VoutDisplayEvent(vout_display_t *vd, int event, va_list args)<br> const bool is_fullscreen = (bool)va_arg(args, int);<br> msg_Dbg(vd, "VoutDisplayEvent 'resize' %dx%d %s",<br>
width, height, is_fullscreen ? "fullscreen" : "window");<br>+ if(var_GetBool(vd->p_parent, "resize-msg"))<br>+ vout_OSDMessage( (vlc_object_t *) vd->p_parent, SPU_DEFAULT_CHANNEL,<br>
+ "Screen Size: %d x %d", width, height );<br>+<br> <br> /* */<br> vlc_mutex_lock(&osys->lock);<br>diff --git a/src/video_output/vout_intf.c b/src/video_output/vout_intf.c<br>
index c4c9f00..3786a50 100644<br>--- a/src/video_output/vout_intf.c<br>+++ b/src/video_output/vout_intf.c<br>@@ -325,6 +325,10 @@ void vout_IntfInit( vout_thread_t *p_vout )<br> var_AddCallback( p_vout, "sub-margin", SubMarginCallback, NULL );<br>
var_TriggerCallback( p_vout, "sub-margin" );<br> <br>+ /* Add resize-msg variable */<br>+ var_Create( p_vout, "resize-msg",<br>+ VLC_VAR_BOOL | VLC_VAR_DOINHERIT | VLC_VAR_ISCOMMAND );<br>
+<br> /* Mouse coordinates */<br> var_Create( p_vout, "mouse-button-down", VLC_VAR_INTEGER );<br> var_Create( p_vout, "mouse-moved", VLC_VAR_COORDS );<br>-- <br>1.7.10.4<br><br><br clear="all">
<div><br>-- <br>Regards,<br>Sandeep<br><br>
</div></div>