summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-02-16 11:59:37 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-02-16 11:59:37 +0000
commitd50c78c23821358ded916a52054b998883f1ad57 (patch)
tree1ab16b0fdb367484856b1dd6ab8a1d79b2d000de
parent2c25fa88a580b1ee2cb4d60eda7430cf824c8850 (diff)
downloadrockbox-d50c78c23821358ded916a52054b998883f1ad57.tar.gz
rockbox-d50c78c23821358ded916a52054b998883f1ad57.zip
* surround member only used by charcells with #ifdef HAVE_LCD_CHARCELLS in struct scrollinfo in scroll_engine.h.
* remove function prototypes which are not actualy defined. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24693 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/list.h3
-rw-r--r--apps/gui/skin_engine/skin_engine.h8
-rw-r--r--firmware/drivers/lcd-bitmap-common.c1
-rw-r--r--firmware/export/scroll_engine.h2
4 files changed, 3 insertions, 11 deletions
diff --git a/apps/gui/list.h b/apps/gui/list.h
index 1d4a6bd5b4..92495d7408 100644
--- a/apps/gui/list.h
+++ b/apps/gui/list.h
@@ -166,7 +166,6 @@ extern void gui_synclist_select_item(struct gui_synclist * lists,
166extern void gui_synclist_add_item(struct gui_synclist * lists); 166extern void gui_synclist_add_item(struct gui_synclist * lists);
167extern void gui_synclist_del_item(struct gui_synclist * lists); 167extern void gui_synclist_del_item(struct gui_synclist * lists);
168extern void gui_synclist_limit_scroll(struct gui_synclist * lists, bool scroll); 168extern void gui_synclist_limit_scroll(struct gui_synclist * lists, bool scroll);
169extern void gui_synclist_flash(struct gui_synclist * lists);
170extern void gui_synclist_set_title(struct gui_synclist * lists, char * title, 169extern void gui_synclist_set_title(struct gui_synclist * lists, char * title,
171 enum themable_icons icon); 170 enum themable_icons icon);
172extern void gui_synclist_hide_selection_marker(struct gui_synclist *lists, 171extern void gui_synclist_hide_selection_marker(struct gui_synclist *lists,
@@ -256,7 +255,7 @@ void simplelist_addline(int line_number, const char *fmt, ...);
256*/ 255*/
257void simplelist_info_init(struct simplelist_info *info, char* title, 256void simplelist_info_init(struct simplelist_info *info, char* title,
258 int count, void* data); 257 int count, void* data);
259 258
260/* show a list. 259/* show a list.
261 if list->action_callback != NULL it is called with the action ACTION_REDRAW 260 if list->action_callback != NULL it is called with the action ACTION_REDRAW
262 before the list is dislplayed for the first time */ 261 before the list is dislplayed for the first time */
diff --git a/apps/gui/skin_engine/skin_engine.h b/apps/gui/skin_engine/skin_engine.h
index 642f15aaad..90f38c9920 100644
--- a/apps/gui/skin_engine/skin_engine.h
+++ b/apps/gui/skin_engine/skin_engine.h
@@ -40,10 +40,6 @@ enum skinnable_screens {
40int wps_get_touchaction(struct wps_data *data); 40int wps_get_touchaction(struct wps_data *data);
41#endif 41#endif
42 42
43/* setup and display a WPS for the first time */
44bool gui_wps_display(struct gui_wps *gwps);
45
46
47/* Do a update_type update of the skinned screen */ 43/* Do a update_type update of the skinned screen */
48bool skin_update(struct gui_wps *gwps, unsigned int update_type); 44bool skin_update(struct gui_wps *gwps, unsigned int update_type);
49 45
@@ -54,10 +50,6 @@ bool skin_update(struct gui_wps *gwps, unsigned int update_type);
54bool skin_data_load(enum screen_type screen, struct wps_data *wps_data, 50bool skin_data_load(enum screen_type screen, struct wps_data *wps_data,
55 const char *buf, bool isfile); 51 const char *buf, bool isfile);
56 52
57
58/* initial setup of wps_data */
59void skin_data_init(struct wps_data *wps_data);
60
61/* call this in statusbar toggle handlers if needed */ 53/* call this in statusbar toggle handlers if needed */
62void skin_statusbar_changed(struct gui_wps*); 54void skin_statusbar_changed(struct gui_wps*);
63 55
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c
index 586c74578f..8f0b61ef6a 100644
--- a/firmware/drivers/lcd-bitmap-common.c
+++ b/firmware/drivers/lcd-bitmap-common.c
@@ -367,7 +367,6 @@ void LCDFN(puts_scroll_style_offset)(int x, int y, const unsigned char *string,
367 367
368 s->vp = current_vp; 368 s->vp = current_vp;
369 s->y = y; 369 s->y = y;
370 s->len = utf8length(string);
371 s->offset = offset; 370 s->offset = offset;
372 s->startx = x * LCDFN(getstringsize)(" ", NULL, NULL); 371 s->startx = x * LCDFN(getstringsize)(" ", NULL, NULL);
373 s->backward = false; 372 s->backward = false;
diff --git a/firmware/export/scroll_engine.h b/firmware/export/scroll_engine.h
index 0fcb06af81..16b11c22ee 100644
--- a/firmware/export/scroll_engine.h
+++ b/firmware/export/scroll_engine.h
@@ -50,7 +50,9 @@ struct scrollinfo
50{ 50{
51 struct viewport* vp; 51 struct viewport* vp;
52 char line[SCROLL_LINE_SIZE]; 52 char line[SCROLL_LINE_SIZE];
53#ifdef HAVE_LCD_CHARCELLS
53 int len; /* length of line in chars */ 54 int len; /* length of line in chars */
55#endif
54 int y; /* Position of the line on the screen (char co-ordinates) */ 56 int y; /* Position of the line on the screen (char co-ordinates) */
55 int offset; 57 int offset;
56 int startx; 58 int startx;