Skip to content

Commit 6dd9b8e

Browse files
committed
improve COMMON_COORD_POINT_FROM_U64
1 parent b0e31a7 commit 6dd9b8e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

awtk-port/input_thread/common_coord.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
static tk_atomic_t s_coord;
2626

2727
#define COMMON_COORD_POINT_TO_U64(p) (((uint64_t)p.x << 32) | p.y)
28-
#define COMMON_COORD_POINT_FROM_U64(p) \
28+
#define COMMON_COORD_POINT_FROM_U64(num) \
2929
point_init((xy_t)((num >> 32) & 0xFFFFFFFF), (xy_t)(num & 0xFFFFFFFF))
3030

3131
ret_t common_coord_init(void) {

docs/changes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# 最新动态
22

3+
2025/02/07
4+
* 修复COMMON_COORD_POINT_FROM_U64(感谢兆坤提供补丁)
5+
36
2025/01/15
47
* 修正drm模式每次drm_vsync刷新屏幕时,都调用srand重置随机种子的Bug,避免程序中使用rand会出现重复的数字的问题
58

0 commit comments

Comments
 (0)