mirror of
https://github.com/openharmony/third_party_mtdev.git
synced 2026-07-21 06:25:23 -04:00
61c0b404be
回退 'Pull Request !35 : 相同触摸报点不上报问题修改'
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
Copyright (C) 2021-2023 Huawei Device Co., Ltd.
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at\n
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
|
|
diff -Naur old/src/core.c new/src/core.c
|
|
--- old/src/core.c 2021-01-01 00:00:00.000000000 +0800
|
|
+++ new/src/core.c 2021-01-01 00:00:00.000000000 +0800
|
|
@@ -297,7 +297,11 @@ static void apply_typeA_changes(struct mtdev_state *state,
|
|
foreach_bit(slot, state->used) {
|
|
if (state->data[slot].tracking_id != id)
|
|
continue;
|
|
+#ifdef DISABLE_FILTER
|
|
+ (void)filter_data;
|
|
+#else
|
|
filter_data(state, dev, &data[i], prop[i], slot);
|
|
+#endif
|
|
push_slot_changes(state, &data[i], prop[i], slot, syn);
|
|
SETBIT(used, slot);
|
|
id = MT_ID_NULL;
|