mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
lcd-common: Remove support for custom line heights from viewport.
Since scrolling is now pixel-based this is not necessary anymore. custom line height is handled by put_line() but can also possible to implement with lcd_puts_scroll_func(). Change-Id: Iee9b12bf99afac93d95d2a1a6f5d5b4db237b21c
This commit is contained in:
parent
9a4686b563
commit
4978094480
5 changed files with 10 additions and 16 deletions
|
@ -140,8 +140,7 @@ void touchbutton_draw(struct touchbutton *data, int num_buttons) {
|
|||
*/
|
||||
lcd->set_viewport(&data[i].vp);
|
||||
|
||||
/* Set line_height to height, then it'll center for us */
|
||||
data[i].vp.line_height = data[i].vp.height;
|
||||
/* TODO: Center text vert*/
|
||||
data[i].vp.flags |= VP_FLAG_ALIGN_CENTER;
|
||||
|
||||
/* If the width offset was 0, use a scrolling puts, else center and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue