summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2009-08-19 21:48:17 +0000
committerNils Wallménius <nils@rockbox.org>2009-08-19 21:48:17 +0000
commit4f879766778ea4d1051db036e939a17ddb3e532a (patch)
tree366a6095858da429c9d45672f438c4f32dcf84cf
parent1f0fa71f5ae60e14388e18bbf5a7eb8146d9bd9a (diff)
downloadrockbox-4f879766778ea4d1051db036e939a17ddb3e532a.tar.gz
rockbox-4f879766778ea4d1051db036e939a17ddb3e532a.zip
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
-rw-r--r--apps/gui/bitmap/list.c1
-rw-r--r--apps/gui/charcell/list.c1
-rw-r--r--firmware/export/lcd.h14
-rw-r--r--firmware/export/scroll_engine.h1
-rw-r--r--uisimulator/common/stubs.c4
5 files changed, 7 insertions, 14 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
index e47c46ceb2..8e4cd44d21 100644
--- a/apps/gui/bitmap/list.c
+++ b/apps/gui/bitmap/list.c
@@ -30,6 +30,7 @@
30#include "settings.h" 30#include "settings.h"
31#include "kernel.h" 31#include "kernel.h"
32#include "system.h" 32#include "system.h"
33#include "file.h"
33 34
34#include "action.h" 35#include "action.h"
35#include "screen_access.h" 36#include "screen_access.h"
diff --git a/apps/gui/charcell/list.c b/apps/gui/charcell/list.c
index 285cd3eacd..8d91c2f6b8 100644
--- a/apps/gui/charcell/list.c
+++ b/apps/gui/charcell/list.c
@@ -30,6 +30,7 @@
30#include "settings.h" 30#include "settings.h"
31#include "kernel.h" 31#include "kernel.h"
32#include "system.h" 32#include "system.h"
33#include "file.h"
33 34
34#include "list.h" 35#include "list.h"
35#include "screen_access.h" 36#include "screen_access.h"
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index 11fcc98a66..5846fae9c1 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -62,14 +62,6 @@ struct viewport {
62#define NUMLN_UNPACK(x) ((unsigned char)((x) & STYLE_MAXLN_MASK)) 62#define NUMLN_UNPACK(x) ((unsigned char)((x) & STYLE_MAXLN_MASK))
63#endif 63#endif
64 64
65#ifdef SIMULATOR
66#ifndef MAX_PATH
67#define MAX_PATH 260
68#endif
69#else
70#include "file.h" /* for MAX_PATH; FIXME: Why does this not work for sims? */
71#endif /* SIMULATOR */
72
73#ifdef HAVE_LCD_BITMAP 65#ifdef HAVE_LCD_BITMAP
74#if LCD_DEPTH <=8 66#if LCD_DEPTH <=8
75#if (LCD_PIXELFORMAT == VERTICAL_INTERLEAVED) \ 67#if (LCD_PIXELFORMAT == VERTICAL_INTERLEAVED) \
@@ -112,13 +104,7 @@ extern void lcd_write_command_e(int cmd, int data);
112extern void lcd_write_command_ex(int cmd, int data1, int data2); 104extern void lcd_write_command_ex(int cmd, int data1, int data2);
113extern void lcd_write_data(const fb_data* p_bytes, int count); 105extern void lcd_write_data(const fb_data* p_bytes, int count);
114extern void lcd_init(void); 106extern void lcd_init(void);
115
116#ifdef SIMULATOR
117/* Define a dummy device specific init for the sims */
118#define lcd_init_device()
119#else
120extern void lcd_init_device(void); 107extern void lcd_init_device(void);
121#endif /* SIMULATOR */
122 108
123extern void lcd_backlight(bool on); 109extern void lcd_backlight(bool on);
124extern int lcd_default_contrast(void); 110extern int lcd_default_contrast(void);
diff --git a/firmware/export/scroll_engine.h b/firmware/export/scroll_engine.h
index 2806dc7763..762761f213 100644
--- a/firmware/export/scroll_engine.h
+++ b/firmware/export/scroll_engine.h
@@ -26,6 +26,7 @@
26#define __SCROLL_ENGINE_H__ 26#define __SCROLL_ENGINE_H__
27 27
28#include <lcd.h> 28#include <lcd.h>
29#include "file.h"
29 30
30void scroll_init(void); 31void scroll_init(void);
31void lcd_scroll_stop(struct viewport* vp); 32void lcd_scroll_stop(struct viewport* vp);
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index 1d0d6c51d8..cb208bfeab 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -275,6 +275,10 @@ void lcd_set_contrast( int x )
275 (void)x; 275 (void)x;
276} 276}
277 277
278void lcd_init_device(void)
279{
280}
281
278void mpeg_set_pitch(int pitch) 282void mpeg_set_pitch(int pitch)
279{ 283{
280 (void)pitch; 284 (void)pitch;