changeset 36829:677d96fe1b93

Enable setting full ass margin value ranges. These options allow a range of 0..2000.
author ib
date Mon, 24 Feb 2014 12:33:45 +0000
parents 9c152d6f8aee
children 1967a97a211b
files gui/app/cfg.c gui/dialog/preferences.c
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gui/app/cfg.c	Mon Feb 24 12:23:14 2014 +0000
+++ b/gui/app/cfg.c	Mon Feb 24 12:33:45 2014 +0000
@@ -238,8 +238,8 @@
 #ifdef CONFIG_ASS
     { "ass_enabled",                 &ass_enabled,             CONF_TYPE_FLAG,        0,           0,     1,          NULL },
     { "ass_use_margins",             &ass_use_margins,         CONF_TYPE_FLAG,        0,           0,     1,          NULL },
-    { "ass_top_margin",              &ass_top_margin,          CONF_TYPE_INT,         CONF_RANGE,  0,     512,        NULL },
-    { "ass_bottom_margin",           &ass_bottom_margin,       CONF_TYPE_INT,         CONF_RANGE,  0,     512,        NULL },
+    { "ass_top_margin",              &ass_top_margin,          CONF_TYPE_INT,         CONF_RANGE,  0,     2000,       NULL },
+    { "ass_bottom_margin",           &ass_bottom_margin,       CONF_TYPE_INT,         CONF_RANGE,  0,     2000,       NULL },
 #endif
 
     { NULL,                          NULL,                     0,                     0,           0,     0,          NULL }
--- a/gui/dialog/preferences.c	Mon Feb 24 12:23:14 2014 +0000
+++ b/gui/dialog/preferences.c	Mon Feb 24 12:33:45 2014 +0000
@@ -869,13 +869,13 @@
   gtk_box_pack_start( GTK_BOX( hbox9 ),hbox91,TRUE,FALSE,0 );
   gtk_widget_show( hbox91 );
   SBASSTopMargin=gtkAddSpinButton( MSGTR_GUI_Top":",
-	(GtkAdjustment *)gtk_adjustment_new(0,0,512,1,8,0),hbox91 );
+	(GtkAdjustment *)gtk_adjustment_new(0,0,2000,1,8,0),hbox91 );
 
   hbox92=gtk_hbox_new( FALSE,0 );
   gtk_box_pack_start( GTK_BOX( hbox9 ),hbox92,TRUE,FALSE,0 );
   gtk_widget_show( hbox92 );
   SBASSBottomMargin=gtkAddSpinButton( MSGTR_GUI_Bottom":",
-	(GtkAdjustment *)gtk_adjustment_new(0,0,512,1,8,0),hbox92 );
+	(GtkAdjustment *)gtk_adjustment_new(0,0,2000,1,8,0),hbox92 );
 
   label=gtkAddLabel( MSGTR_GUI_OSD_Subtitles,NULL );
     gtk_notebook_set_tab_label( GTK_NOTEBOOK( notebook1 ),gtk_notebook_get_nth_page( GTK_NOTEBOOK( notebook1 ),2 ),label );