]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix initial dimensions when *not* autocrop
authorJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 16 Jun 2017 19:09:56 +0000 (12:09 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 16 Jun 2017 19:09:56 +0000 (12:09 -0700)
gtk/src/callbacks.c

index 5f7c04b8e0742bb02a07382a927fee0618d5d807..862cd3c6e70c001ba51895b5b0579e4f71feb6da 100644 (file)
@@ -1885,8 +1885,7 @@ set_title_settings(signal_user_data_t *ud, GhbValue *settings)
             ghb_dict_set(settings, "volume_label", ghb_value_dup(
                     ghb_dict_get_value(ud->globals, "volume_label")));
         }
-        ghb_dict_set_int(settings, "scale_width",
-                             title->geometry.width - title->crop[2] - title->crop[3]);
+        ghb_dict_set_int(settings, "scale_width", title->geometry.width);
 
         // If anamorphic or keep_aspect, the hight will
         // be automatically calculated
@@ -1899,8 +1898,7 @@ set_title_settings(signal_user_data_t *ud, GhbValue *settings)
             pic_par == HB_ANAMORPHIC_AUTO ||
             pic_par == HB_ANAMORPHIC_CUSTOM)
         {
-            ghb_dict_set_int(settings, "scale_height",
-                             title->geometry.height - title->crop[0] - title->crop[1]);
+            ghb_dict_set_int(settings, "scale_height", title->geometry.height);
         }
 
         ghb_set_scale_settings(settings, GHB_PIC_KEEP_PAR|GHB_PIC_USE_MAX);