mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-04-14 11:54:16 +00:00
Replace hardcoded max number of touches with a define.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
This commit is contained in:
@@ -1186,7 +1186,7 @@ DeviceInitTouch(DeviceIntPtr dev, Atom *axes_labels)
|
||||
|
||||
if (priv->has_touch)
|
||||
{
|
||||
priv->num_slots = priv->max_touches ? priv->max_touches : 10;
|
||||
priv->num_slots = priv->max_touches ? priv->max_touches : SYNAPTICS_MAX_TOUCHES;
|
||||
|
||||
priv->open_slots = malloc(priv->num_slots * sizeof(int));
|
||||
if (!priv->open_slots)
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
* structs, typedefs, #defines, enums
|
||||
*****************************************************************************/
|
||||
#define SYNAPTICS_MOVE_HISTORY 5
|
||||
#define SYNAPTICS_MAX_TOUCHES 10
|
||||
|
||||
typedef struct _SynapticsMoveHist
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user