]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
better visibility updated
authorDL1YCF <dl1ycf@darc.de>
Sun, 15 Nov 2020 22:36:38 +0000 (23:36 +0100)
committerDL1YCF <dl1ycf@darc.de>
Sun, 15 Nov 2020 22:36:38 +0000 (23:36 +0100)
rx_panadapter.c

index 4c3505458e20e6df67bdb961fdfcc0085eb2694e..0373b9d334b7d9bc1add8af759f3108de066c5f9 100644 (file)
@@ -558,11 +558,11 @@ void rx_panadapter_update(RECEIVER *rx) {
   } else {
     //
     // if filled, use 0.5 (active) and 0.25 (inactive)
-    // if only drawing the line, use 1.0 (active) and 0.5 (inactive)
+    // if only drawing the line, use 0.75 for active RX
     //
     double brightness=0.25;
-    if (active) brightness=2.0*brightness;
-    if (!display_filled) brightness=2.0*brightness;
+    if (active) brightness = 0.50;
+    if (!display_filled && active) brightness =0.75;
     cairo_set_source_rgba(cr, 1.0, 1.0, 1.0, brightness);
   }