1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 17:28:50 -05:00

Corrected scope Y grid display

This commit is contained in:
f4exb 2015-07-14 12:10:59 +02:00
parent 50034678d2
commit 72e461d17b

View File

@ -221,7 +221,7 @@ void GLScope::paintGL()
tick = &(*tickList)[i];
if(tick->major) {
if(tick->textSize > 0) {
float y = tick->pos / m_y1Scale.getSize();
float y = 1 - (tick->pos / m_y1Scale.getSize());
glBegin(GL_LINE_LOOP);
glVertex2f(0, y);
glVertex2f(1, y);
@ -393,7 +393,7 @@ void GLScope::paintGL()
tick = &(*tickList)[i];
if(tick->major) {
if(tick->textSize > 0) {
float y = tick->pos / m_y2Scale.getSize();
float y = 1 - (tick->pos / m_y2Scale.getSize());
glBegin(GL_LINE_LOOP);
glVertex2f(0, y);
glVertex2f(1, y);