-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Size of the screen is not perfect. #63
Comments
If you have read the implementation, you will know the implementation will adjust to the correct content resolution. So, it won’t affect. lv_port_pc_visual_studio/LvglWindowsSimulator/win32drv.c Lines 1518 to 1523 in c042c66
lv_port_pc_visual_studio/LvglWindowsSimulator/win32drv.c Lines 1585 to 1627 in c042c66
Kenji Mouri |
Hi Kenji, that looks like it should do the trick, however, when i tested it, i took several screenshots with different sizes, etc... they were all having less because of the title bar, i'm not sure if it was a bug on my side or what. |
Hi, regarding this problem, it looks like it's related to the DPI of 125% from Windows of my screen, 400 x 300 is 320 x 240 * 1.25 that is my scale. |
Even in the latest commit is still like that, i'm not sure if i'm doing something wrong. |
https://docs.lvgl.io/master/integration/driver/windows.html Maybe this doc will do some help. Kenji Mouri |
Hi there @MouriNaruto thanks for the link, sadly it doesn't work. Let me explain the situation... If i run LVGLSimulator project with DPI 100% in Windows, it works. ✅ I tried both simulator and desktop mode, also i tried to change DPI Override etc..., it doesn't work. |
Got it. I will try to do some fix. Kenji Mouri |
Problem
When you specify 800x480 for example, the size of the content screen is less than that since is taking space from the title bar.
Potential Solution
When initializing the screen in the wind32drv.c, we can modify the CreateWindowExW in this way:
Basically we change
This way the screen wont have title bar but the content size will be the exact one.
The text was updated successfully, but these errors were encountered: