[chronojump] redo updateEncoderCaptureGraphPaint if window is maximized...
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] redo updateEncoderCaptureGraphPaint if window is maximized...
- Date: Fri, 1 Apr 2016 05:43:15 +0000 (UTC)
commit b1e00006b79438f50e35703379d5dbe29b5f0dfe
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Apr 1 07:37:23 2016 +0200
redo updateEncoderCaptureGraphPaint if window is maximized...
src/encoderCapture.cs | 2 +-
src/gui/encoder.cs | 13 ++++++++++---
2 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/src/encoderCapture.cs b/src/encoderCapture.cs
index 0e53931..eb79909 100644
--- a/src/encoderCapture.cs
+++ b/src/encoderCapture.cs
@@ -634,7 +634,7 @@ public class EncoderCaptureInertial : EncoderCapture
);
}
EncoderCapturePointsCaptured = i;
- EncoderCapturePointsPainted = -1; //mark meaning screen should be erased
+ EncoderCapturePointsPainted = -1; //mark meaning screen should be erased and start
painting from the beginning
}
}
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 89a85bf..b87e81c 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -4356,7 +4356,7 @@ public partial class ChronoJumpWindow
encoder_capture_curves_bars_pixmap = new Gdk.Pixmap (window, allocation.Width,
allocation.Height, -1);
callPlotCurvesGraphDoPlot();
-
+
encoder_capture_curves_sizeChanged = false;
}
@@ -4415,7 +4415,10 @@ public partial class ChronoJumpWindow
{
encoder_capture_signal_pixmap = new Gdk.Pixmap (window, allocation.Width,
allocation.Height, -1);
- UtilGtk.ErasePaint(encoder_capture_signal_drawingarea, encoder_capture_signal_pixmap);
+ if(eCapture != null && capturingCsharp == encoderCaptureProcess.CAPTURING)
+ eCapture.EncoderCapturePointsPainted = -1; //mark meaning screen should be
erased and start painting from the beginning
+ else
+ UtilGtk.ErasePaint(encoder_capture_signal_drawingarea,
encoder_capture_signal_pixmap);
encoder_capture_signal_sizeChanged = false;
}
@@ -4435,7 +4438,11 @@ public partial class ChronoJumpWindow
allocation.Width != encoder_capture_signal_allocationXOld) {
encoder_capture_signal_pixmap = new Gdk.Pixmap
(encoder_capture_signal_drawingarea.GdkWindow,
allocation.Width, allocation.Height, -1);
- UtilGtk.ErasePaint(encoder_capture_signal_drawingarea, encoder_capture_signal_pixmap);
+
+ if(eCapture != null && capturingCsharp == encoderCaptureProcess.CAPTURING)
+ eCapture.EncoderCapturePointsPainted = -1; //mark meaning screen should be
erased and start painting from the beginning
+ else
+ UtilGtk.ErasePaint(encoder_capture_signal_drawingarea,
encoder_capture_signal_pixmap);
encoder_capture_signal_sizeChanged = false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]