From d9a895599ecc3d74684e546c730842283255b24e Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 3 Jan 2008 17:30:50 +0000 Subject: Fix some warnings/errors. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15992 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/mpegplayer/mpegplayer.c | 5 ----- apps/plugins/mpegplayer/video_out_rockbox.c | 5 +++-- 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) } #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 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) #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 } -- cgit v1.2.3