diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-06-23 13:20:35 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-06-23 13:20:35 +0000 |
| commit | bdbdb97f19655a635a2d37f81f9fe1e31f9162b2 (patch) | |
| tree | ea5672478b70e550910bc179a7644afa70c0d057 /firmware/export | |
| parent | c1b8df05e1def3096ff6d2ea55f23b2e72936fce (diff) | |
| download | rockbox-bdbdb97f19655a635a2d37f81f9fe1e31f9162b2.zip rockbox-bdbdb97f19655a635a2d37f81f9fe1e31f9162b2.tar.gz rockbox-bdbdb97f19655a635a2d37f81f9fe1e31f9162b2.tar.bz2 rockbox-bdbdb97f19655a635a2d37f81f9fe1e31f9162b2.tar.xz | |
FS#9051 - remove LCD margins... use viewports if you need them...
NOTE to WPS people....
%m has been removed, but (i think) because of the other %m tags it wont fail if you try loading a wps with %m|..|, it will just be ignored.
Also note that if the statusbar is enabled the default viewport is 8 pixels shorter than when its not, i.e (0,0) is really (0,8) if the statusbar is shown... I dont think this will be a major issue because almost no WPS show the bar and use bitmaps... text only WPS shouldnt be affected.
Please report problem screens in http://forums.rockbox.org/index.php?topic=17358.0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17763 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/events.h | 1 | ||||
| -rw-r--r-- | firmware/export/lcd-remote.h | 3 | ||||
| -rw-r--r-- | firmware/export/lcd.h | 5 |
3 files changed, 1 insertions, 8 deletions
diff --git a/firmware/export/events.h b/firmware/export/events.h index ede2101..bf0485b 100644 --- a/firmware/export/events.h +++ b/firmware/export/events.h @@ -30,6 +30,7 @@ #define EVENT_CLASS_DISK 0x0100 #define EVENT_CLASS_PLAYBACK 0x0200 #define EVENT_CLASS_BUFFERING 0x0400 +#define EVENT_CLASS_GUI 0x0800 /** * Because same playback events are used in mpeg.c and playback.c, define diff --git a/firmware/export/lcd-remote.h b/firmware/export/lcd-remote.h index bccc1e4..6d71834 100644 --- a/firmware/export/lcd-remote.h +++ b/firmware/export/lcd-remote.h @@ -144,9 +144,6 @@ extern void lcd_remote_set_flip(bool yesno); extern void lcd_remote_set_drawmode(int mode); extern int lcd_remote_get_drawmode(void); -extern void lcd_remote_setmargins(int xmargin, int ymargin); -extern int lcd_remote_getxmargin(void); -extern int lcd_remote_getymargin(void); extern int lcd_remote_getwidth(void); extern int lcd_remote_getheight(void); extern void lcd_remote_setfont(int font); diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index a7f4d7e..b68efb1 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -33,8 +33,6 @@ struct viewport { int font; int drawmode; #endif - int xmargin; /* During the transition only - to be removed */ - int ymargin; /* During the transition only - to be removed */ #if LCD_DEPTH > 1 unsigned fg_pattern; unsigned bg_pattern; @@ -105,9 +103,6 @@ extern void lcd_init_device(void); extern void lcd_backlight(bool on); extern int lcd_default_contrast(void); extern void lcd_set_contrast(int val); -extern void lcd_setmargins(int xmargin, int ymargin); -extern int lcd_getxmargin(void); -extern int lcd_getymargin(void); extern int lcd_getwidth(void); extern int lcd_getheight(void); extern int lcd_getstringsize(const unsigned char *str, int *w, int *h); |