From a6da1ff7b86fa7c9e227ee2dd9e00314c09804ac Mon Sep 17 00:00:00 2001 From: lixianjing Date: Sat, 25 Jun 2022 16:52:49 +0800 Subject: [PATCH] improve awtk_main --- docs/changes.md | 2 ++ src/awtk_main.inc | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/docs/changes.md b/docs/changes.md index 139b3f988..2da090bc7 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -1,6 +1,8 @@ # 最新动态 + 2022/06/25 * 完善 platform_prepare + * 完善 awtk_main 2022/06/24 * 修复连续切换edit焦点,关闭键盘后,还原窗口位置不正确问题(感谢兆坤提供补丁) diff --git a/src/awtk_main.inc b/src/awtk_main.inc index 330e6806b..35e9e45b9 100644 --- a/src/awtk_main.inc +++ b/src/awtk_main.inc @@ -133,6 +133,8 @@ int WINAPI wWinMain(HINSTANCE hinstance, HINSTANCE hprevinstance, LPWSTR lpcmdli platform_prepare(); #ifdef ON_CMD_LINE ON_CMD_LINE(argc, argv); + lcd_w = LCD_WIDTH; + lcd_h = LCD_HEIGHT; #else if (argc >= 2) { lcd_w = tk_atoi(argv[1]); @@ -158,6 +160,8 @@ int main(int argc, char* argv[]) { platform_prepare(); #ifdef ON_CMD_LINE ON_CMD_LINE(argc, argv); + lcd_w = LCD_WIDTH; + lcd_h = LCD_HEIGHT; #else if (argc >= 2) { lcd_w = tk_atoi(argv[1]);