File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 31
31
#ifndef LCUI_MAIN_H
32
32
#define LCUI_MAIN_H
33
33
34
+ /** 一秒内的最大更新帧数 */
35
+ #define LCUI_MAX_FRAMES_PER_SEC 120
36
+
34
37
LCUI_BEGIN_HEADER
35
38
36
39
typedef LCUI_TaskFunc LCUI_AppTaskFunc ;
Original file line number Diff line number Diff line change 58
58
#define STATE_ACTIVE 1
59
59
#define STATE_KILLED 0
60
60
61
- /** 一秒内的最大更新帧数 */
62
- #define MAX_FRAMES_PER_SEC 120
63
-
64
61
typedef struct LCUI_MainLoopRec_ {
65
62
int state ; /**< 主循环的状态 */
66
63
LCUI_Thread tid ; /**< 当前运行该主循环的线程的ID */
@@ -445,7 +442,7 @@ void LCUI_InitApp(LCUI_AppDriver app)
445
442
MainApp .workers [i ] = LCUIWorker_New ();
446
443
LCUIWorker_RunAsync (MainApp .workers [i ]);
447
444
}
448
- StepTimer_SetFrameLimit (MainApp .timer , MAX_FRAMES_PER_SEC );
445
+ StepTimer_SetFrameLimit (MainApp .timer , LCUI_MAX_FRAMES_PER_SEC );
449
446
if (!app ) {
450
447
app = LCUI_CreateAppDriver ();
451
448
if (!app ) {
You can’t perform that action at this time.
0 commit comments