Skip to content

Commit

Permalink
Merge pull request #1298 from srcejon/fix_1297
Browse files Browse the repository at this point in the history
3D Spectrogram: Use texture height rather than fft size
  • Loading branch information
f4exb committed Jun 21, 2022
2 parents e48551a + 4df26f7 commit 6491735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdrgui/gui/glshaderspectrogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ void GLShaderSpectrogram::drawSurface(SpectrumSettings::SpectrogramStyle style,
program->setUniformValue(m_dataTextureLoc, 0); // set uniform to texture unit?
program->setUniformValue(m_colorMapLoc, 1);

program->setUniformValue(m_limitLoc, 1.5f*1.0f/(float)(m_gridElements));
program->setUniformValue(m_limitLoc, 1.4f*1.0f/(float)(m_texture->height()));

if (style == SpectrumSettings::Outline)
{
Expand Down

0 comments on commit 6491735

Please sign in to comment.