diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2014-01-12 11:02:02 +0100 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2014-01-12 11:02:02 +0100 |
| commit | c0a02c98c169e11fb4770e096cd1dd2e56b97f4d (patch) | |
| tree | 24592bb112d5c3ab8bae7fc8e0d5cc7faf501fe9 | |
| parent | 0a0d61e777c47d742be195dd9c661065be0eb7da (diff) | |
| download | rockbox-c0a02c98c169e11fb4770e096cd1dd2e56b97f4d.zip rockbox-c0a02c98c169e11fb4770e096cd1dd2e56b97f4d.tar.gz rockbox-c0a02c98c169e11fb4770e096cd1dd2e56b97f4d.tar.bz2 rockbox-c0a02c98c169e11fb4770e096cd1dd2e56b97f4d.tar.xz | |
touchscreen/skin_engine: The touchregion handler didn't handle that vertical bars are bottom-up by default
Change-Id: I4e7fc451c7ba318acb110c587bff4306c393e09f
| -rw-r--r-- | apps/gui/skin_engine/skin_touchsupport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_touchsupport.c b/apps/gui/skin_engine/skin_touchsupport.c index 337d3ef..dbc5615 100644 --- a/apps/gui/skin_engine/skin_touchsupport.c +++ b/apps/gui/skin_engine/skin_touchsupport.c @@ -111,8 +111,8 @@ int skin_get_touchaction(struct wps_data *data, int* edge_offset, SKINOFFSETTOPTR(skin_buffer, r->bar); if(r->width > r->height) *edge_offset = vx*100/r->width; - else - *edge_offset = vy*100/r->height; + else /* vertical bars are bottom-up by default */ + *edge_offset = 100 - vy*100/r->height; if (r->reverse_bar || (bar && bar->invert_fill_direction)) *edge_offset = 100 - *edge_offset; } |