[chronojump] if ! useVideo, serie graph is double width



commit dca97bd59afa95d23e15edf828e760553a46ad62
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Jul 13 15:22:39 2015 +0200

    if ! useVideo, serie graph is double width

 src/gui/encoder.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 7313603..b9acc11 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -4554,7 +4554,11 @@ public partial class ChronoJumpWindow
                                
                                //image_encoder_width = 
UtilGtk.WidgetWidth(viewport_image_encoder_capture)-5; 
                                //make graph half width of Chronojump window
-                               image_encoder_width = Convert.ToInt32(UtilGtk.WidgetWidth(app1) / 2);
+                               //but if video is disabled, then make it wider because thegraph will be much 
taller
+                               if(useVideo)
+                                       image_encoder_width = Convert.ToInt32(UtilGtk.WidgetWidth(app1) / 2);
+                               else
+                                       image_encoder_width = Convert.ToInt32(UtilGtk.WidgetWidth(app1));
                                
                                //-2 to accomadate the width slider without needing a height slider
                                image_encoder_height = UtilGtk.WidgetHeight(viewport_image_encoder_capture) 
-2;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]