mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-01 19:16:29 -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
|
@ -32,6 +32,7 @@ void Console::clear() {
|
|||
Color::black()
|
||||
);
|
||||
pos = { 0, 0 };
|
||||
display.scroll_set_position(0);
|
||||
}
|
||||
|
||||
void Console::write(const std::string message) {
|
||||
|
@ -64,10 +65,10 @@ void Console::paint(Painter& painter) {
|
|||
}
|
||||
|
||||
void Console::on_show() {
|
||||
clear();
|
||||
|
||||
const auto screen_r = screen_rect();
|
||||
display.scroll_set_area(screen_r.top(), screen_r.bottom());
|
||||
|
||||
clear();
|
||||
}
|
||||
|
||||
void Console::on_hide() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue