diff options
author | Yoshihisa Uchida <uchida@rockbox.org> | 2010-06-26 12:17:01 +0000 |
---|---|---|
committer | Yoshihisa Uchida <uchida@rockbox.org> | 2010-06-26 12:17:01 +0000 |
commit | 17383c2691bfb121388c539bebe8b32bb97e4e9b (patch) | |
tree | 35285f69f22a82386c0cebbb37a26521b5f24bf7 /apps/plugins/text_viewer/tv_preferences.c | |
parent | e0bb92f00fdbcfd726407c688f5d82d3fa470a99 (diff) | |
download | rockbox-17383c2691bfb121388c539bebe8b32bb97e4e9b.tar.gz rockbox-17383c2691bfb121388c539bebe8b32bb97e4e9b.zip |
text viewer: some modify text viewer's layout and preferences.
- layout: hader, footer and horizontal_scrollbar add padding.
- add member 'statusbar' in tv_preferences.
- delete HD_SBAR/HD_BOTH/FT_SBAR/FT_BOTH.
- deletes the function to check header_mode/footer_mode.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27142 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/text_viewer/tv_preferences.c')
-rw-r--r-- | apps/plugins/text_viewer/tv_preferences.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/text_viewer/tv_preferences.c b/apps/plugins/text_viewer/tv_preferences.c index 72cda9d00f..a90c72d8e9 100644 --- a/apps/plugins/text_viewer/tv_preferences.c +++ b/apps/plugins/text_viewer/tv_preferences.c | |||
@@ -58,6 +58,7 @@ static void tv_notify_change_preferences(const struct tv_preferences *oldp) | |||
58 | #ifdef HAVE_LCD_BITMAP | 58 | #ifdef HAVE_LCD_BITMAP |
59 | (oldp->header_mode != preferences->header_mode) || | 59 | (oldp->header_mode != preferences->header_mode) || |
60 | (oldp->footer_mode != preferences->footer_mode) || | 60 | (oldp->footer_mode != preferences->footer_mode) || |
61 | (oldp->statusbar != preferences->statusbar) || | ||
61 | (rb->strcmp(oldp->font_name, preferences->font_name)) || | 62 | (rb->strcmp(oldp->font_name, preferences->font_name)) || |
62 | #endif | 63 | #endif |
63 | (rb->strcmp(oldp->file_name, preferences->file_name))) | 64 | (rb->strcmp(oldp->file_name, preferences->file_name))) |
@@ -99,13 +100,15 @@ void tv_set_default_preferences(struct tv_preferences *p) | |||
99 | p->horizontal_scrollbar = SB_OFF; | 100 | p->horizontal_scrollbar = SB_OFF; |
100 | p->vertical_scrollbar = SB_OFF; | 101 | p->vertical_scrollbar = SB_OFF; |
101 | #ifdef HAVE_LCD_BITMAP | 102 | #ifdef HAVE_LCD_BITMAP |
102 | p->header_mode = HD_BOTH; | 103 | p->header_mode = HD_PATH; |
103 | p->footer_mode = FT_BOTH; | 104 | p->footer_mode = FT_PAGE; |
105 | p->statusbar = true; | ||
104 | rb->strlcpy(p->font_name, rb->global_settings->font_file, MAX_PATH); | 106 | rb->strlcpy(p->font_name, rb->global_settings->font_file, MAX_PATH); |
105 | p->font = rb->font_get(FONT_UI); | 107 | p->font = rb->font_get(FONT_UI); |
106 | #else | 108 | #else |
107 | p->header_mode = HD_NONE; | 109 | p->header_mode = HD_NONE; |
108 | p->footer_mode = FT_NONE; | 110 | p->footer_mode = FT_NONE; |
111 | p->statusbar = false; | ||
109 | #endif | 112 | #endif |
110 | p->autoscroll_speed = 1; | 113 | p->autoscroll_speed = 1; |
111 | p->narrow_mode = NM_PAGE; | 114 | p->narrow_mode = NM_PAGE; |