forked from len0rd/rockbox
Fix some warnings/errors.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15992 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a5fc3f4df4
commit
d9a895599e
2 changed files with 3 additions and 7 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue