diff options
author | Robin Gareus <robin@gareus.org> | 2013-07-28 21:24:27 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-07-28 21:24:27 +0200 |
commit | 893e26cc6856c4216d147e855ca18d5b00a068bf (patch) | |
tree | 0ae30ecf4c6a33042377d59d2f6853d5ab7e09b2 /libs/gtkmm2ext | |
parent | cbcde35376d37c7742f9ba8d3de4ed3b279cdadb (diff) |
use 3px for peak-hold in LED mode -> display 2 bright lines
Diffstat (limited to 'libs/gtkmm2ext')
-rw-r--r-- | libs/gtkmm2ext/fastmeter.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gtkmm2ext/fastmeter.cc b/libs/gtkmm2ext/fastmeter.cc index b543d6b192..265fc3f567 100644 --- a/libs/gtkmm2ext/fastmeter.cc +++ b/libs/gtkmm2ext/fastmeter.cc @@ -586,8 +586,8 @@ FastMeter::vertical_expose (GdkEventExpose* ev) last_peak_rect.x = 1; last_peak_rect.width = pixwidth; last_peak_rect.y = max(1, 1 + pixheight - (gint) floor (pixheight * current_peak)); - if (bright_hold) { - last_peak_rect.height = max(0, min(4, pixheight - last_peak_rect.y -1 )); + if (bright_hold || (_styleflags & 2)) { + last_peak_rect.height = max(0, min(3, pixheight - last_peak_rect.y -1 )); } else { last_peak_rect.height = max(0, min(2, pixheight - last_peak_rect.y -1 )); } |