mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-07 22:22:21 -04:00
Fixed scrolling/FFT view glitch when going back to analog audio rx
This commit is contained in:
parent
0222b60b30
commit
63c4a60cf7
2 changed files with 6 additions and 2 deletions
|
@ -352,7 +352,10 @@ void WaterfallWidget::set_parent_rect(const Rect new_parent_rect) {
|
|||
waterfall_reduced_rect = { 0, scale_height, new_parent_rect.width(), new_parent_rect.height() - scale_height - audio_spectrum_height };
|
||||
|
||||
frequency_scale.set_parent_rect({ 0, 0, new_parent_rect.width(), scale_height });
|
||||
waterfall_view.set_parent_rect(waterfall_normal_rect);
|
||||
if (fft_widget)
|
||||
waterfall_view.set_parent_rect(waterfall_reduced_rect);
|
||||
else
|
||||
waterfall_view.set_parent_rect(waterfall_normal_rect);
|
||||
waterfall_view.on_show();
|
||||
|
||||
fft_widget_rect = { 0, new_parent_rect.height() - audio_spectrum_height, new_parent_rect.width(), audio_spectrum_height };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue