diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2013-04-16 16:06:13 +0200 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2014-01-07 14:13:48 +0100 |
| commit | 49780944809651f28e8135bf6d67dcd8ceeb2585 (patch) | |
| tree | 4893467ebcf509eeab6990905511f40c852b7f03 /apps/plugins/lib/pluginlib_touchscreen.c | |
| parent | 9a4686b563ac9e27615e1032792bd9878bb291f7 (diff) | |
| download | rockbox-49780944809651f28e8135bf6d67dcd8ceeb2585.zip rockbox-49780944809651f28e8135bf6d67dcd8ceeb2585.tar.gz rockbox-49780944809651f28e8135bf6d67dcd8ceeb2585.tar.bz2 rockbox-49780944809651f28e8135bf6d67dcd8ceeb2585.tar.xz | |
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
Diffstat (limited to 'apps/plugins/lib/pluginlib_touchscreen.c')
| -rw-r--r-- | apps/plugins/lib/pluginlib_touchscreen.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/plugins/lib/pluginlib_touchscreen.c b/apps/plugins/lib/pluginlib_touchscreen.c index 0957507..5903b7c 100644 --- a/apps/plugins/lib/pluginlib_touchscreen.c +++ b/apps/plugins/lib/pluginlib_touchscreen.c @@ -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 |