forked from len0rd/rockbox
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
This commit is contained in:
parent
9d8293526e
commit
de910d862c
1 changed files with 4 additions and 0 deletions
|
|
@ -2011,8 +2011,12 @@ static inline void draw_gradient(int y, int h)
|
||||||
selected_track_pulse = (selected_track_pulse+1) % 10;
|
selected_track_pulse = (selected_track_pulse+1) % 10;
|
||||||
int c2 = selected_track_pulse - 5;
|
int c2 = selected_track_pulse - 5;
|
||||||
for (r=0; r<h; r++) {
|
for (r=0; r<h; r++) {
|
||||||
|
#ifdef HAVE_LCD_COLOR
|
||||||
MYLCD(set_foreground)(G_PIX(c2+80-(c >> 9), c2+100-(c >> 9),
|
MYLCD(set_foreground)(G_PIX(c2+80-(c >> 9), c2+100-(c >> 9),
|
||||||
c2+250-(c >> 8)));
|
c2+250-(c >> 8)));
|
||||||
|
#else
|
||||||
|
MYLCD(set_foreground)(G_BRIGHT(c2+160-(c >> 8)));
|
||||||
|
#endif
|
||||||
MYLCD(hline)(0, LCD_WIDTH, r+y);
|
MYLCD(hline)(0, LCD_WIDTH, r+y);
|
||||||
if ( r > h/2 )
|
if ( r > h/2 )
|
||||||
c-=inc;
|
c-=inc;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue