mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-01 19:49:11 +08:00
improve awtk_main
This commit is contained in:
parent
711246fa9a
commit
a6da1ff7b8
@ -1,6 +1,8 @@
|
||||
# 最新动态
|
||||
|
||||
2022/06/25
|
||||
* 完善 platform_prepare
|
||||
* 完善 awtk_main
|
||||
|
||||
2022/06/24
|
||||
* 修复连续切换edit焦点,关闭键盘后,还原窗口位置不正确问题(感谢兆坤提供补丁)
|
||||
|
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user