A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cztomczak/cefpython/issues/398 below:

Fix DpiAware.GetSystemDpi and expose DpiAware.Scale · Issue #398 · cztomczak/cefpython · GitHub

DpiAware.GetSystemDpi error

Error:

File "dpi_aware_win.pyx", line 26, in cefpython_py27.DpiAware.GetSystemDpi
TypeError: tuple() takes at most 1 argument (2 given)

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:

void GetSystemDpi(int* dpix, int* dpiy) {

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%.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4