This commit is contained in:
Kovid Goyal 2018-09-19 19:58:23 +05:30
parent 5fb02c0439
commit 4a04f27fde
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -339,7 +339,7 @@ static inline void
get_window_dpi(GLFWwindow *w, double *x, double *y) {
GLFWmonitor *monitor = NULL;
if (w) monitor = current_monitor(w);
if (monitor == NULL) monitor = glfwGetPrimaryMonitor();
if (monitor == NULL) { PyErr_Print(); monitor = glfwGetPrimaryMonitor(); }
float xscale = 1, yscale = 1;
if (monitor) glfwGetMonitorContentScale(monitor, &xscale, &yscale);
#ifdef __APPLE__