diff options
| author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-09-28 13:49:43 +0000 |
|---|---|---|
| committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-09-28 13:49:43 +0000 |
| commit | 49a9e1ef35085dd1b348bb7949f32cd4db043506 (patch) | |
| tree | 0b3344dc8c91ef9b52f13520024a5d16dc6a16a8 /apps | |
| parent | f333c97176bfed3c66c44e44d28ad84d99bc071f (diff) | |
| download | rockbox-49a9e1ef35085dd1b348bb7949f32cd4db043506.zip rockbox-49a9e1ef35085dd1b348bb7949f32cd4db043506.tar.gz rockbox-49a9e1ef35085dd1b348bb7949f32cd4db043506.tar.bz2 rockbox-49a9e1ef35085dd1b348bb7949f32cd4db043506.tar.xz | |
Make the gradient look better when more than one line is selected (running time, ID3 info, cuesheet viewer...). I haven't found a solution for scrolling yet, so that won't look too good.
The recording screen code needs a bit of adapting too, but I don't have a target to test on, so leave it for now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14884 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/gui/list.c | 5 | ||||
| -rw-r--r-- | apps/recorder/recording.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 6a7d21c..aca0105 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -409,6 +409,11 @@ static void gui_list_draw_smart(struct gui_list *gui_list) { /* Display gradient line selector */ style |= STYLE_GRADIENT; + + /* Make the lcd driver know how many lines the gradient should + cover and only draw it for the first selected item. */ + if (current_item == gui_list->selected_item) + style |= gui_list->selected_size & STYLE_COLOR_MASK; } #endif else /* if (!global_settings.cursor_style) */ diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index bd04d26..fed2e67 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -863,7 +863,7 @@ bool recording_screen(bool no_source) style |= STYLE_COLORBAR; } else if (global_settings.cursor_style == 3) { - style |= STYLE_GRADIENT; + style |= STYLE_GRADIENT | 1; } #endif |