mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-20 14:39:01 +00:00
rename Widget::visible to Widget::drawn (#3066)
* rename Widget::visible to Widget::drawn * Update firmware/standalone/common/ui/ui_widget.cpp Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update firmware/standalone/common/ui/ui_widget.hpp Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix fm_radio usage of drawn() --------- Co-authored-by: gullradriel <3157857+gullradriel@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -160,7 +160,7 @@ void FocusManager::update(
|
||||
const auto focus_screen_rect = focus_widget()->screen_rect();
|
||||
|
||||
const auto test_fn = [&focus_screen_rect, event](ui::Widget* const w) -> test_result_t {
|
||||
// if( w->visible() && w->focusable() ) {
|
||||
// if( w->drawn() && w->focusable() ) {
|
||||
if (w->focusable()) {
|
||||
const auto distance = rect_distances(event, focus_screen_rect, w->screen_rect());
|
||||
if (distance >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user