You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additionally, it should be fixed how CalculateWindowSize behaves. Currently it only allows for sizes that are factor of 0.25 when scaling (1.0, 1.25, 1.5, etc). In Windows 10 you can set custom scaling to for example "132%" and it should scale window size exactly by 132%.
The text was updated successfully, but these errors were encountered:
cztomczak
changed the title
DpiAware.GetSystemDpi and CalculateWindowSize throw error: tuple() takes at most 1 argument (2 given)
Fix DpiAware.GetSystemDpi and expose DpiAware.Scale
Aug 16, 2018
DpiAware.GetSystemDpi error
Error:
Source code:
This should replaced with:
Temporarily you could use pywin32/ctypes extensions to get system dpi settings, this would require translating this C++ code to a Python equivalent:
cefpython/src/client_handler/dpi_aware.cpp
Line 129 in 824d7ce
Issue #399 is blocked by this issue.
Expose DpiAware.Scale
Additionally, it should be fixed how
CalculateWindowSize
behaves. Currently it only allows for sizes that are factor of 0.25 when scaling (1.0, 1.25, 1.5, etc). In Windows 10 you can set custom scaling to for example "132%" and it should scale window size exactly by 132%.The text was updated successfully, but these errors were encountered: