mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-12 11:42:13 -04:00
Center modal view message.
This commit is contained in:
parent
ac49726707
commit
65d2f263f2
2 changed files with 7 additions and 4 deletions
|
@ -309,6 +309,12 @@ ModalMessageView::ModalMessageView(
|
|||
} });
|
||||
|
||||
text_message.set(message);
|
||||
|
||||
const int text_message_width = message.size() * 8;
|
||||
text_message.set_parent_rect({
|
||||
(240 - text_message_width) / 2, 7 * 16,
|
||||
text_message_width, 16
|
||||
});
|
||||
}
|
||||
|
||||
void ModalMessageView::focus() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue