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

@ -56,6 +56,7 @@ struct scrollinfo
int y; /* Position of the line on the screen (char co-ordinates) */
int offset;
int startx;
int y_offset; /* y offset of the line, used for pixel-accurate list scrolling */
#ifdef HAVE_LCD_BITMAP
int width; /* length of line in pixels */
int style; /* line style */