summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2009-03-09 01:14:21 +0000
committerJens Arnold <amiconn@rockbox.org>2009-03-09 01:14:21 +0000
commitde910d862c166c9c73ccc01b6a6dc0884c7037ae (patch)
treedae17ec1089686f147af51a0d376569dd9e35f35 /apps
parent9d8293526e42dc1396d167f9d8bc136741f76abe (diff)
Greyscale targets: Make the gradient a bit brighter and simplify the calculation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20253 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/pictureflow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/pictureflow.c b/apps/plugins/pictureflow.c
index 48435cdab2..fd8079e21e 100644
--- a/apps/plugins/pictureflow.c
+++ b/apps/plugins/pictureflow.c
@@ -2011,8 +2011,12 @@ static inline void draw_gradient(int y, int h)
selected_track_pulse = (selected_track_pulse+1) % 10;
int c2 = selected_track_pulse - 5;
for (r=0; r<h; r++) {
+#ifdef HAVE_LCD_COLOR
MYLCD(set_foreground)(G_PIX(c2+80-(c >> 9), c2+100-(c >> 9),
c2+250-(c >> 8)));
+#else
+ MYLCD(set_foreground)(G_BRIGHT(c2+160-(c >> 8)));
+#endif
MYLCD(hline)(0, LCD_WIDTH, r+y);
if ( r > h/2 )
c-=inc;