Forgot to multiply xscale

This commit is contained in:
Kovid Goyal 2018-11-05 07:56:33 +05:30
parent 82f9aecacb
commit f5743f4610
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -905,6 +905,7 @@ is_ascii_control_char(char x) {
if (flags) {
float xscale = 1, yscale = 1;
_glfwPlatformGetWindowContentScale(window, &xscale, &yscale);
if (xscale > 0) deltaX *= xscale;
if (yscale > 0) deltaY *= yscale;
}