mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-05 16:25:04 -04:00
Move AIS recent items list draw function back into class.
This commit is contained in:
parent
fb8e5b21df
commit
eda6e6a5be
2 changed files with 10 additions and 2 deletions
|
@ -299,7 +299,7 @@ bool AISRecentEntriesView::on_key(const ui::KeyEvent event) {
|
|||
return false;
|
||||
}
|
||||
|
||||
static void ais_list_item_draw(
|
||||
void AISRecentEntriesView::draw(
|
||||
const AISRecentEntry& entry,
|
||||
const Rect& target_rect,
|
||||
Painter& painter,
|
||||
|
@ -336,7 +336,7 @@ void AISRecentEntriesView::paint(Painter& painter) {
|
|||
for(auto p = range.first; p != range.second; p++) {
|
||||
const auto& entry = *p;
|
||||
const auto is_selected_key = (selected_key == entry.key());
|
||||
ais_list_item_draw(entry, target_rect, painter, s, (has_focus() && is_selected_key));
|
||||
draw(entry, target_rect, painter, s, (has_focus() && is_selected_key));
|
||||
target_rect.pos.y += target_rect.height();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue