summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/mpegplayer/mpegplayer.c5
-rw-r--r--apps/plugins/mpegplayer/video_out_rockbox.c5
2 files changed, 3 insertions, 7 deletions
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c
index e9f6b9011f..8ea4ee3abd 100644
--- a/apps/plugins/mpegplayer/mpegplayer.c
+++ b/apps/plugins/mpegplayer/mpegplayer.c
@@ -303,11 +303,6 @@ static unsigned draw_blendcolor(unsigned c1, unsigned c2, unsigned char amount)
303} 303}
304#endif 304#endif
305 305
306static void draw_fill_rect(int x, int y, int width, int height)
307{
308 rb->lcd_fillrect(_X, _Y, _W, _H);
309}
310
311#ifdef HAVE_LCD_COLOR 306#ifdef HAVE_LCD_COLOR
312static void draw_update_rect(int x, int y, int width, int height) 307static void draw_update_rect(int x, int y, int width, int height)
313{ 308{
diff --git a/apps/plugins/mpegplayer/video_out_rockbox.c b/apps/plugins/mpegplayer/video_out_rockbox.c
index 6efbaf0a01..239d3270d6 100644
--- a/apps/plugins/mpegplayer/video_out_rockbox.c
+++ b/apps/plugins/mpegplayer/video_out_rockbox.c
@@ -506,7 +506,8 @@ void vo_set_clip_rect(const struct vo_rect *rc)
506#if NUM_CORES > 1 || !defined (HAVE_LCD_COLOR) 506#if NUM_CORES > 1 || !defined (HAVE_LCD_COLOR)
507void vo_lock(void) 507void vo_lock(void)
508{ 508{
509#ifndef HAVE_LCD_COLOR 509/* TODO: evaluate synchronization with graylib in the sim */
510#ifndef HAVE_LCD_COLOR && !defined(SIMULATOR)
510 set_irq_level(HIGHEST_IRQ_LEVEL); 511 set_irq_level(HIGHEST_IRQ_LEVEL);
511#endif 512#endif
512 video_lock(); 513 video_lock();
@@ -515,7 +516,7 @@ void vo_lock(void)
515void vo_unlock(void) 516void vo_unlock(void)
516{ 517{
517 video_unlock(); 518 video_unlock();
518#ifndef HAVE_LCD_COLOR 519#ifndef HAVE_LCD_COLOR && !defined(SIMULATOR)
519 set_irq_level(0); 520 set_irq_level(0);
520#endif 521#endif
521} 522}