mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
53a936ab83
commit
d9d0b4dd20
6 changed files with 139 additions and 44 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue