Fixed offset display was reversed
This commit is contained in:
+8
-8
@@ -3498,11 +3498,11 @@ void ShowOffset() {
|
|||||||
if (band < BAND_GAP) {
|
if (band < BAND_GAP) {
|
||||||
if (OStatus < -250) {
|
if (OStatus < -250) {
|
||||||
// Left arrow active (▶)
|
// Left arrow active (▶)
|
||||||
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, SignificantColor);
|
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
||||||
// Center dot
|
// Center dot
|
||||||
tft.fillCircle(centerX, centerY, 3, GreyoutColor);
|
tft.fillCircle(centerX, centerY, 3, GreyoutColor);
|
||||||
// Right arrow dimmed (◀)
|
// Right arrow dimmed (◀)
|
||||||
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, SignificantColor);
|
||||||
tuned = false;
|
tuned = false;
|
||||||
} else if (USN < 250 && WAM < 250 && OStatus > -250 && OStatus < 250 && !SQ) {
|
} else if (USN < 250 && WAM < 250 && OStatus > -250 && OStatus < 250 && !SQ) {
|
||||||
// Both arrows dimmed
|
// Both arrows dimmed
|
||||||
@@ -3513,11 +3513,11 @@ void ShowOffset() {
|
|||||||
tuned = true;
|
tuned = true;
|
||||||
} else if (OStatus > 250) {
|
} else if (OStatus > 250) {
|
||||||
// Right arrow active (◀)
|
// Right arrow active (◀)
|
||||||
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, SignificantColor);
|
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
||||||
// Center dot dimmed
|
// Center dot dimmed
|
||||||
tft.fillCircle(centerX, centerY, 3, GreyoutColor);
|
tft.fillCircle(centerX, centerY, 3, GreyoutColor);
|
||||||
// Left arrow dimmed (▶)
|
// Left arrow dimmed (▶)
|
||||||
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, SignificantColor);
|
||||||
tuned = false;
|
tuned = false;
|
||||||
} else {
|
} else {
|
||||||
// Everything dimmed
|
// Everything dimmed
|
||||||
@@ -3529,10 +3529,10 @@ void ShowOffset() {
|
|||||||
} else {
|
} else {
|
||||||
if (OStatus <= -2) {
|
if (OStatus <= -2) {
|
||||||
// Left arrow active (▶)
|
// Left arrow active (▶)
|
||||||
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, SignificantColor);
|
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
||||||
tft.fillCircle(centerX, centerY, 3, GreyoutColor);
|
tft.fillCircle(centerX, centerY, 3, GreyoutColor);
|
||||||
// Right arrow dimmed (◀)
|
// Right arrow dimmed (◀)
|
||||||
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, SignificantColor);
|
||||||
tuned = false;
|
tuned = false;
|
||||||
} else if (OStatus > -2 && OStatus < 2 && !SQ) {
|
} else if (OStatus > -2 && OStatus < 2 && !SQ) {
|
||||||
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
||||||
@@ -3541,10 +3541,10 @@ void ShowOffset() {
|
|||||||
tuned = true;
|
tuned = true;
|
||||||
} else if (OStatus > 2) {
|
} else if (OStatus > 2) {
|
||||||
// Right arrow active (◀)
|
// Right arrow active (◀)
|
||||||
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, SignificantColor);
|
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
||||||
tft.fillCircle(centerX, centerY, 3, GreyoutColor);
|
tft.fillCircle(centerX, centerY, 3, GreyoutColor);
|
||||||
// Left arrow dimmed (▶)
|
// Left arrow dimmed (▶)
|
||||||
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, SignificantColor);
|
||||||
tuned = false;
|
tuned = false;
|
||||||
} else {
|
} else {
|
||||||
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
||||||
|
|||||||
Reference in New Issue
Block a user