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
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 643b260270c9
Choose a base ref
...
head repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 87a1f4d35852
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 29, 2020

  1. Copy the full SHA
    87a1f4d View commit details
Showing with 3 additions and 2 deletions.
  1. +3 −2 scopeprotocols/EyePattern.cpp
5 changes: 3 additions & 2 deletions scopeprotocols/EyePattern.cpp
Original file line number Diff line number Diff line change
@@ -585,7 +585,7 @@ void EyePattern::DoMaskTest(EyeWaveform* cap)
cr->fill();

//Software rendering
float yscale = m_height / m_inputs[0].m_channel->GetVoltageRange();
float yscale = m_height / GetVoltageRange();
m_mask.RenderForAnalysis(
cr,
cap,
@@ -599,11 +599,12 @@ void EyePattern::DoMaskTest(EyeWaveform* cap)

//Test each pixel of the eye pattern against the mask
uint32_t* data = reinterpret_cast<uint32_t*>(surface->get_data());
int stride = surface->get_stride() / sizeof(uint32_t);
size_t total = 0;
size_t hits = 0;
for(size_t y=0; y<m_height; y++)
{
auto row = data + (y*m_width);
auto row = data + (y*stride);
auto eyerow = accum + (y*m_width);
for(size_t x=0; x<m_width; x++)
{