summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2024-11-24 23:54:34 +0100
committerChristian Soffke <christian.soffke@gmail.com>2024-11-24 23:55:40 +0100
commit18fdb41b2c1de45dd8b9a4e30b4199b57c390e29 (patch)
tree2ec3f6514b2737fa2d22395232e251cf453524dd
parent1fddea5e8e6ba23847b67eee8bf372de87697679 (diff)
downloadrockbox-18fdb41b2c.tar.gz
rockbox-18fdb41b2c.zip
plugins: simple viewer: prevent audio dropouts when scrolling
Change-Id: Idf3ee45585985beaccb991f4f66cd895aa3f7a4c
-rw-r--r--apps/plugins/lib/simple_viewer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/lib/simple_viewer.c b/apps/plugins/lib/simple_viewer.c
index db349323c5..07176eb991 100644
--- a/apps/plugins/lib/simple_viewer.c
+++ b/apps/plugins/lib/simple_viewer.c
@@ -217,6 +217,7 @@ static void scroll_up(struct view_info *info, int n)
calc_first_line(info, info->line-n);
draw_text(info);
+ rb->yield();
}
static void scroll_down(struct view_info *info, int n)
@@ -226,6 +227,7 @@ static void scroll_down(struct view_info *info, int n)
calc_first_line(info, info->line+n);
draw_text(info);
+ rb->yield();
}
static void scroll_to_top(struct view_info *info)