Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert "Fix FS#12606 - next track can cause the screen to be cleared"

This reverts commit cb9bc3bbc8a66c3d5296bfbc68f4487c39c6ac68.

-33
-3
apps/appevents.h
··· 61 61 GUI_EVENT_STATUSBAR_TOGGLE = (EVENT_CLASS_GUI|1), 62 62 GUI_EVENT_ACTIONUPDATE, 63 63 GUI_EVENT_THEME_CHANGED, 64 - /* Called when the UI viewport is cleared in the skin engine to 65 - * notify the current screen that it needs to do an update */ 66 - GUI_EVENT_NEED_UI_UPDATE, 67 64 }; 68 65 69 66 /** Recording events **/
-22
apps/gui/list.c
··· 596 596 } 597 597 #endif 598 598 599 - /* 600 - * Magic to make sure the list gets updated correctly if the skin does 601 - * something naughty like a full screen update when we are in a button 602 - * loop. 603 - * 604 - * The GUI_EVENT_NEED_UI_UPDATE event is registered for in list_do_action_timeout() 605 - * and unregistered in gui_synclict_do_button(). This is done because 606 - * if something is using the list UI they *must* be calling those 607 - * two functions in the correct order or the list wont work. 608 - */ 609 - static struct gui_synclist *current_lists; 610 - void _lists_uiviewport_update_callback(void *data) 611 - { 612 - (void)data; 613 - gui_synclist_draw(current_lists); 614 - } 615 - 616 599 bool gui_synclist_do_button(struct gui_synclist * lists, 617 600 int *actionptr, enum list_wrap wrap) 618 601 { ··· 626 609 #else 627 610 static int next_item_modifier = 1; 628 611 static int last_accel_tick = 0; 629 - 630 - remove_event(GUI_EVENT_NEED_UI_UPDATE, _lists_uiviewport_update_callback); 631 612 632 613 if (action != ACTION_TOUCHSCREEN) 633 614 { ··· 791 772 /* Returns the lowest of timeout or the delay until a postponed 792 773 scheduled announcement is due (if any). */ 793 774 { 794 - current_lists = lists; 795 - add_event(GUI_EVENT_NEED_UI_UPDATE, false, 796 - _lists_uiviewport_update_callback); 797 775 if(lists->scheduled_talk_tick) 798 776 { 799 777 long delay = lists->scheduled_talk_tick -current_tick +1;
-8
apps/gui/skin_engine/skin_render.c
··· 29 29 #include "config.h" 30 30 #include "core_alloc.h" 31 31 #include "kernel.h" 32 - #include "appevents.h" 33 32 #ifdef HAVE_ALBUMART 34 33 #include "albumart.h" 35 34 #endif ··· 860 859 display->set_framebuffer(NULL); 861 860 skin_backdrop_show(data->backdrop_id); 862 861 #endif 863 - 864 - if (((refresh_mode&SKIN_REFRESH_ALL) == SKIN_REFRESH_ALL)) 865 - { 866 - /* If this is the UI viewport then let the UI know 867 - * to redraw itself */ 868 - send_event(GUI_EVENT_NEED_UI_UPDATE, NULL); 869 - } 870 862 /* Restore the default viewport */ 871 863 display->set_viewport(NULL); 872 864 display->update();