mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
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:
parent
1f0fa71f5a
commit
4f87976677
5 changed files with 7 additions and 14 deletions
|
|
@ -62,14 +62,6 @@ struct viewport {
|
|||
#define NUMLN_UNPACK(x) ((unsigned char)((x) & STYLE_MAXLN_MASK))
|
||||
#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
|
||||
#if LCD_DEPTH <=8
|
||||
#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_data(const fb_data* p_bytes, int count);
|
||||
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);
|
||||
#endif /* SIMULATOR */
|
||||
|
||||
extern void lcd_backlight(bool on);
|
||||
extern int lcd_default_contrast(void);
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
#define __SCROLL_ENGINE_H__
|
||||
|
||||
#include <lcd.h>
|
||||
#include "file.h"
|
||||
|
||||
void scroll_init(void);
|
||||
void lcd_scroll_stop(struct viewport* vp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue