improve awtk_main

This commit is contained in:
lixianjing 2022-06-25 16:52:49 +08:00
parent 711246fa9a
commit a6da1ff7b8
2 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,8 @@
# 最新动态
2022/06/25
* 完善 platform_prepare
* 完善 awtk_main
2022/06/24
* 修复连续切换edit焦点关闭键盘后还原窗口位置不正确问题(感谢兆坤提供补丁)

View File

@ -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]);