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 /apps | |
parent | 0a0d61e777c47d742be195dd9c661065be0eb7da (diff) | |
download | rockbox-c0a02c98c169e11fb4770e096cd1dd2e56b97f4d.tar.gz rockbox-c0a02c98c169e11fb4770e096cd1dd2e56b97f4d.zip |
touchscreen/skin_engine: The touchregion handler didn't handle that vertical bars are bottom-up by default
Change-Id: I4e7fc451c7ba318acb110c587bff4306c393e09f
Diffstat (limited to 'apps')
-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 337d3ef5f7..dbc561500a 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, | |||
111 | SKINOFFSETTOPTR(skin_buffer, r->bar); | 111 | SKINOFFSETTOPTR(skin_buffer, r->bar); |
112 | if(r->width > r->height) | 112 | if(r->width > r->height) |
113 | *edge_offset = vx*100/r->width; | 113 | *edge_offset = vx*100/r->width; |
114 | else | 114 | else /* vertical bars are bottom-up by default */ |
115 | *edge_offset = vy*100/r->height; | 115 | *edge_offset = 100 - vy*100/r->height; |
116 | if (r->reverse_bar || (bar && bar->invert_fill_direction)) | 116 | if (r->reverse_bar || (bar && bar->invert_fill_direction)) |
117 | *edge_offset = 100 - *edge_offset; | 117 | *edge_offset = 100 - *edge_offset; |
118 | } | 118 | } |