mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-09 02:05:21 -04:00
Rework spectrum/console UI clearing and resetting.
This commit is contained in:
parent
dc30911e0f
commit
d0f35cf89d
4 changed files with 23 additions and 29 deletions
|
@ -504,13 +504,7 @@ void ReceiverView::on_hide() {
|
|||
context().message_map.unregister_handler(Message::ID::FSKPacket);
|
||||
}
|
||||
|
||||
void ReceiverView::set_parent_rect(const Rect new_parent_rect) {
|
||||
const ui::Dim header_height = 3 * 16;
|
||||
|
||||
waterfall.set_parent_rect({
|
||||
0, header_height,
|
||||
new_parent_rect.width(), static_cast<ui::Dim>(new_parent_rect.height() - header_height)
|
||||
});
|
||||
}
|
||||
|
||||
void ReceiverView::focus() {
|
||||
|
@ -568,7 +562,6 @@ void ReceiverView::on_modulation_changed(int32_t modulation) {
|
|||
break;
|
||||
}
|
||||
|
||||
waterfall.clear();
|
||||
}
|
||||
|
||||
void ReceiverView::on_show_options_frequency() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue