Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ngscopeclient/scopehal-apps
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9b840b28ea51
Choose a base ref
...
head repository: ngscopeclient/scopehal-apps
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3abfbc1826a5
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 28, 2020

  1. Eye pattern: clip compliance testing masks so they don't show up on t…

    …op of the vertical axis
    azonenberg committed Oct 28, 2020
    Copy the full SHA
    3abfbc1 View commit details
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/glscopeclient/WaveformArea_cairo.cpp
10 changes: 10 additions & 0 deletions src/glscopeclient/WaveformArea_cairo.cpp
Original file line number Diff line number Diff line change
@@ -310,6 +310,14 @@ void WaveformArea::RenderEyeMask(Cairo::RefPtr< Cairo::Context > cr)
if(mask.GetMaskName() == "")
return;

//Clip mask to the plot area
cr->save();
cr->move_to(0, 0);
cr->line_to(m_plotRight, 0);
cr->line_to(m_plotRight, m_height);
cr->line_to(0, m_height);
cr->clip();

//Do the actual drawing
mask.RenderForDisplay(
cr,
@@ -319,6 +327,8 @@ void WaveformArea::RenderEyeMask(Cairo::RefPtr< Cairo::Context > cr)
m_pixelsPerVolt,
m_channel.m_channel->GetOffset(),
m_height);

cr->restore();
}

void WaveformArea::RenderDecodeOverlays(Cairo::RefPtr< Cairo::Context > cr)