[chronojump] Force capture drawingarea can be resized at anytime and graph is redrawn
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Force capture drawingarea can be resized at anytime and graph is redrawn
- Date: Mon, 16 Sep 2019 16:04:17 +0000 (UTC)
commit 98b9edcf0a545499b3b60b4b99134d2f504fa702
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Sep 16 18:03:49 2019 +0200
Force capture drawingarea can be resized at anytime and graph is redrawn
src/gui/forceSensor.cs | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/gui/forceSensor.cs b/src/gui/forceSensor.cs
index e02375e6..e17a4c11 100644
--- a/src/gui/forceSensor.cs
+++ b/src/gui/forceSensor.cs
@@ -1209,8 +1209,7 @@ LogB.Information(" re R ");
{
force_capture_pixmap = new Gdk.Pixmap (window, allocation.Width, allocation.Height,
-1);
- if(forceSensorOtherMode == forceSensorOtherModeEnum.CAPTURE_PRE)
-// if(forceCaptureThread != null) //&& capturingCsharp ==
encoderCaptureProcess.CAPTURING)
+ if(forceCaptureThread != null && forceCaptureThread.IsAlive)
fscPoints.NumPainted = -1; //mark meaning screen should be erased and start
painting from the beginning
else {
if(fscPoints == null)
@@ -1240,12 +1239,12 @@ LogB.Information(" re R ");
Gdk.Rectangle allocation = force_capture_drawingarea.Allocation;
if(force_capture_pixmap == null || force_capture_sizeChanged ||
- allocation.Width != force_capture_allocationXOld) {
+ allocation.Width != force_capture_allocationXOld)
+ {
force_capture_pixmap = new Gdk.Pixmap (force_capture_drawingarea.GdkWindow,
allocation.Width, allocation.Height, -1);
- if(forceSensorOtherMode == forceSensorOtherModeEnum.CAPTURE_PRE)
- //if(forceCaptureThread != null) //&& capturingCsharp ==
encoderCaptureProcess.CAPTURING)
+ if(forceCaptureThread != null && forceCaptureThread.IsAlive)
fscPoints.NumPainted = -1; //mark meaning screen should be erased and start
painting from the beginning
else {
if(fscPoints == null)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]