Windows: create a window which fits selected resolution better#306
Windows: create a window which fits selected resolution better#306danie1kr wants to merge 1 commit into
Conversation
try to get a window which is closer to the selected resolution. Still 2 pixels off horizontally, but better than what windows creates.
|
As it might affect existing projects I wouldn't touch this part. |
|
Sure, I understand. Actually, I moved from lv_drivers to pure lvgl when I fixed this. |
|
I don't think you have read the implementation carefully. The current 8.x implementation will apply the real size in WM_CREATE message. lv_drivers/win32drv/win32drv.c Lines 905 to 941 in 451e659 I don't use AdjustWindowRect when creating window because it's not reliable.
Also, AdjustWindowsRectExForDPI is not reliable for enabling the DWM composition which is forced beginning with Windows 8. Especially the Windows 10 frameless-style window which is the DWM hacking. So, this is why I chose only to pass the raw window size before. Because we need to let WM_CREATE message know the raw value for postprocessing. But for 8.x implementation is simplified because 8.x's driver only provides the simulator mode. Kenji Mouri |
|
This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |


try to get a window which is closer to the selected resolution. Still 2 pixels off horizontally, but better than what windows creates.