summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-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 e9f6b90..8ea4ee3 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)
}
#endif
-static void draw_fill_rect(int x, int y, int width, int height)
-{
- rb->lcd_fillrect(_X, _Y, _W, _H);
-}
-
#ifdef HAVE_LCD_COLOR
static void draw_update_rect(int x, int y, int width, int height)
{
diff --git a/apps/plugins/mpegplayer/video_out_rockbox.c b/apps/plugins/mpegplayer/video_out_rockbox.c
index 6efbaf0..239d327 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)
#if NUM_CORES > 1 || !defined (HAVE_LCD_COLOR)
void vo_lock(void)
{
-#ifndef HAVE_LCD_COLOR
+/* TODO: evaluate synchronization with graylib in the sim */
+#ifndef HAVE_LCD_COLOR && !defined(SIMULATOR)
set_irq_level(HIGHEST_IRQ_LEVEL);
#endif
video_lock();
@@ -515,7 +516,7 @@ void vo_lock(void)
void vo_unlock(void)
{
video_unlock();
-#ifndef HAVE_LCD_COLOR
+#ifndef HAVE_LCD_COLOR && !defined(SIMULATOR)
set_irq_level(0);
#endif
}