From de910d862c166c9c73ccc01b6a6dc0884c7037ae Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 9 Mar 2009 01:14:21 +0000 Subject: 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 --- apps/plugins/pictureflow.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/plugins') diff --git a/apps/plugins/pictureflow.c b/apps/plugins/pictureflow.c index 48435cd..fd8079e 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> 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; -- cgit v1.1