1
0
Fork 0
forked from len0rd/rockbox

Slight cleanup in lcd.h: kill fixme and remove useless include, add some includes elsewhere and add a stub for sims instead of ifdef

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22431 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2009-08-19 21:48:17 +00:00
parent 1f0fa71f5a
commit 4f87976677
5 changed files with 7 additions and 14 deletions

View file

@ -30,6 +30,7 @@
#include "settings.h" #include "settings.h"
#include "kernel.h" #include "kernel.h"
#include "system.h" #include "system.h"
#include "file.h"
#include "action.h" #include "action.h"
#include "screen_access.h" #include "screen_access.h"

View file

@ -30,6 +30,7 @@
#include "settings.h" #include "settings.h"
#include "kernel.h" #include "kernel.h"
#include "system.h" #include "system.h"
#include "file.h"
#include "list.h" #include "list.h"
#include "screen_access.h" #include "screen_access.h"

View file

@ -62,14 +62,6 @@ struct viewport {
#define NUMLN_UNPACK(x) ((unsigned char)((x) & STYLE_MAXLN_MASK)) #define NUMLN_UNPACK(x) ((unsigned char)((x) & STYLE_MAXLN_MASK))
#endif #endif
#ifdef SIMULATOR
#ifndef MAX_PATH
#define MAX_PATH 260
#endif
#else
#include "file.h" /* for MAX_PATH; FIXME: Why does this not work for sims? */
#endif /* SIMULATOR */
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
#if LCD_DEPTH <=8 #if LCD_DEPTH <=8
#if (LCD_PIXELFORMAT == VERTICAL_INTERLEAVED) \ #if (LCD_PIXELFORMAT == VERTICAL_INTERLEAVED) \
@ -112,13 +104,7 @@ extern void lcd_write_command_e(int cmd, int data);
extern void lcd_write_command_ex(int cmd, int data1, int data2); extern void lcd_write_command_ex(int cmd, int data1, int data2);
extern void lcd_write_data(const fb_data* p_bytes, int count); extern void lcd_write_data(const fb_data* p_bytes, int count);
extern void lcd_init(void); extern void lcd_init(void);
#ifdef SIMULATOR
/* Define a dummy device specific init for the sims */
#define lcd_init_device()
#else
extern void lcd_init_device(void); extern void lcd_init_device(void);
#endif /* SIMULATOR */
extern void lcd_backlight(bool on); extern void lcd_backlight(bool on);
extern int lcd_default_contrast(void); extern int lcd_default_contrast(void);

View file

@ -26,6 +26,7 @@
#define __SCROLL_ENGINE_H__ #define __SCROLL_ENGINE_H__
#include <lcd.h> #include <lcd.h>
#include "file.h"
void scroll_init(void); void scroll_init(void);
void lcd_scroll_stop(struct viewport* vp); void lcd_scroll_stop(struct viewport* vp);

View file

@ -275,6 +275,10 @@ void lcd_set_contrast( int x )
(void)x; (void)x;
} }
void lcd_init_device(void)
{
}
void mpeg_set_pitch(int pitch) void mpeg_set_pitch(int pitch)
{ {
(void)pitch; (void)pitch;