1
0
Fork 0
forked from len0rd/rockbox

Pixel-accurate (vertical) list scrolling for touchscreen targets.

Looks much smoother now as you don't scroll by whole lines anymore.
Add some functions lcd driver to enable the line based scrolling engine to draw the lines with a pixel-based y-offset.
This should also allow for a sensible kinetic scrolling mechanism (still a todo).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28214 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2010-10-06 12:46:42 +00:00
parent 53a936ab83
commit d9d0b4dd20
6 changed files with 139 additions and 44 deletions

View file

@ -168,8 +168,10 @@ struct screen screens[NB_SCREENS] =
.hline=&lcd_hline,
.scroll_step=&lcd_scroll_step,
.puts_style_offset=&lcd_puts_style_offset,
.puts_style_xyoffset=&lcd_puts_style_xyoffset,
.puts_scroll_style=&lcd_puts_scroll_style,
.puts_scroll_style_offset=&lcd_puts_scroll_style_offset,
.puts_scroll_style_xyoffset=&lcd_puts_scroll_style_xyoffset,
#endif /* HAVE_LCD_BITMAP */
#ifdef HAVE_LCD_CHARCELLS
@ -257,8 +259,10 @@ struct screen screens[NB_SCREENS] =
.hline=&lcd_remote_hline,
.scroll_step=&lcd_remote_scroll_step,
.puts_style_offset=&lcd_remote_puts_style_offset,
.puts_style_xyoffset=&lcd_remote_puts_style_xyoffset,
.puts_scroll_style=&lcd_remote_puts_scroll_style,
.puts_scroll_style_offset=&lcd_remote_puts_scroll_style_offset,
.puts_scroll_style_xyoffset=&lcd_remote_puts_scroll_style_xyoffset,
#endif /* 1 */
#if 0 /* no charcell remote LCDs so far */