From c0a02c98c169e11fb4770e096cd1dd2e56b97f4d Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 12 Jan 2014 11:02:02 +0100 Subject: touchscreen/skin_engine: The touchregion handler didn't handle that vertical bars are bottom-up by default Change-Id: I4e7fc451c7ba318acb110c587bff4306c393e09f --- apps/gui/skin_engine/skin_touchsupport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/gui/skin_engine/skin_touchsupport.c') 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, 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; } -- cgit v1.2.3