diff options
Diffstat (limited to 'apps/gui/skin_engine/skin_touchsupport.c')
-rw-r--r-- | apps/gui/skin_engine/skin_touchsupport.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_touchsupport.c b/apps/gui/skin_engine/skin_touchsupport.c index 09fbd86acd..850c1c0647 100644 --- a/apps/gui/skin_engine/skin_touchsupport.c +++ b/apps/gui/skin_engine/skin_touchsupport.c | |||
@@ -40,7 +40,8 @@ void skin_disarm_touchregions(struct wps_data *data) | |||
40 | * egde_offset is a percentage value for the position of the touch | 40 | * egde_offset is a percentage value for the position of the touch |
41 | * inside the bar for regions which arnt WPS_TOUCHREGION_ACTION type. | 41 | * inside the bar for regions which arnt WPS_TOUCHREGION_ACTION type. |
42 | */ | 42 | */ |
43 | int skin_get_touchaction(struct wps_data *data, int* edge_offset) | 43 | int skin_get_touchaction(struct wps_data *data, int* edge_offset, |
44 | struct touchregion **retregion) | ||
44 | { | 45 | { |
45 | int returncode = ACTION_NONE; | 46 | int returncode = ACTION_NONE; |
46 | short x,y; | 47 | short x,y; |
@@ -84,6 +85,8 @@ int skin_get_touchaction(struct wps_data *data, int* edge_offset) | |||
84 | { | 85 | { |
85 | last_action = r->action; | 86 | last_action = r->action; |
86 | returncode = r->action; | 87 | returncode = r->action; |
88 | if (retregion) | ||
89 | *retregion = r; | ||
87 | } | 90 | } |
88 | if (pressed) | 91 | if (pressed) |
89 | r->armed = true; | 92 | r->armed = true; |
@@ -99,6 +102,8 @@ int skin_get_touchaction(struct wps_data *data, int* edge_offset) | |||
99 | *edge_offset = 100 - *edge_offset; | 102 | *edge_offset = 100 - *edge_offset; |
100 | } | 103 | } |
101 | returncode = r->type; | 104 | returncode = r->type; |
105 | if (retregion) | ||
106 | *retregion = r; | ||
102 | break; | 107 | break; |
103 | } | 108 | } |
104 | } | 109 | } |