summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/mpeg_settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_settings.c')
-rw-r--r--apps/plugins/mpegplayer/mpeg_settings.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_settings.c b/apps/plugins/mpegplayer/mpeg_settings.c
index 70b41a00e2..17a1cbbb69 100644
--- a/apps/plugins/mpegplayer/mpeg_settings.c
+++ b/apps/plugins/mpegplayer/mpeg_settings.c
@@ -543,6 +543,13 @@ static uint32_t increment_time(uint32_t val, int32_t amount, uint32_t range)
543 return val; 543 return val;
544} 544}
545 545
546#ifdef HAVE_LCD_ENABLE
547static void get_start_time_lcd_enable_hook(void)
548{
549 rb->queue_post(rb->button_queue, LCD_ENABLE_EVENT_0, 0);
550}
551#endif /* HAVE_LCD_ENABLE */
552
546static int get_start_time(uint32_t duration) 553static int get_start_time(uint32_t duration)
547{ 554{
548 int button = 0; 555 int button = 0;
@@ -556,6 +563,10 @@ static int get_start_time(uint32_t duration)
556 lcd_(clear_display)(); 563 lcd_(clear_display)();
557 lcd_(update)(); 564 lcd_(update)();
558 565
566#ifdef HAVE_LCD_ENABLE
567 rb->lcd_set_enable_hook(get_start_time_lcd_enable_hook);
568#endif
569
559 draw_slider(0, 100, &rc_bound); 570 draw_slider(0, 100, &rc_bound);
560 rc_bound.b = rc_bound.t - SLIDER_TMARGIN; 571 rc_bound.b = rc_bound.t - SLIDER_TMARGIN;
561 rc_bound.t = SCREEN_MARGIN; 572 rc_bound.t = SCREEN_MARGIN;
@@ -707,6 +718,13 @@ static int get_start_time(uint32_t duration)
707 slider_state = state9; 718 slider_state = state9;
708 break; 719 break;
709 720
721#ifdef HAVE_LCD_ENABLE
722 case LCD_ENABLE_EVENT_0:
723 if (slider_state == state2)
724 display_thumb_image(&rc_vid);
725 continue;
726#endif
727
710 default: 728 default:
711 rb->default_event_handler(button); 729 rb->default_event_handler(button);
712 rb->yield(); 730 rb->yield();
@@ -736,6 +754,10 @@ static int get_start_time(uint32_t duration)
736 rb->yield(); 754 rb->yield();
737 } 755 }
738 756
757#ifdef HAVE_LCD_ENABLE
758 rb->lcd_set_enable_hook(NULL);
759#endif
760
739#ifndef HAVE_LCD_COLOR 761#ifndef HAVE_LCD_COLOR
740 stream_gray_show(false); 762 stream_gray_show(false);
741 grey_clear_display(); 763 grey_clear_display();