[chronojump] Rectangle on encoder analyze single instant
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Rectangle on encoder analyze single instant
- Date: Thu, 4 Feb 2016 21:24:13 +0000 (UTC)
commit da64b282504af2e317f7b7319cf928319cdaed9e
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Feb 4 22:21:34 2016 +0100
Rectangle on encoder analyze single instant
src/gui/encoder.cs | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 271db60..25d752d 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -5470,14 +5470,18 @@ public partial class ChronoJumpWindow
//add rectangle
g.SetSourceRGBA(0.906, 0.745, 0.098, 1); //Chronojump yellow
- int xpos =
eai.GetVerticalLinePosition(Convert.ToInt32(hscale_encoder_analyze_a.Value));
- g.MoveTo(xpos, 0);
- g.LineTo(xpos, drawingarea_encoder_analyze_cairo_pixbuf.Height);
+ int xposa =
eai.GetVerticalLinePosition(Convert.ToInt32(hscale_encoder_analyze_a.Value));
+ g.MoveTo(xposa, 0);
+ g.LineTo(xposa, drawingarea_encoder_analyze_cairo_pixbuf.Height);
if(checkbutton_encoder_analyze_b.Active) {
- xpos =
eai.GetVerticalLinePosition(Convert.ToInt32(hscale_encoder_analyze_b.Value));
- g.MoveTo(xpos, 0);
- g.LineTo(xpos, drawingarea_encoder_analyze_cairo_pixbuf.Height);
+ int xposb =
eai.GetVerticalLinePosition(Convert.ToInt32(hscale_encoder_analyze_b.Value));
+ g.MoveTo(xposb, 0);
+ g.LineTo(xposb, drawingarea_encoder_analyze_cairo_pixbuf.Height);
+
+ g.SetSourceRGBA(0.945, 0.84, 0.518, .5); //lighter yellow, half transp
+ g.Rectangle(xposa ,0, xposb-xposa,
drawingarea_encoder_analyze_cairo_pixbuf.Height);
+ g.Fill();
}
g.Stroke();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]