diff --git a/library/lib/platforms/glfw/glfw_input.cpp b/library/lib/platforms/glfw/glfw_input.cpp index ff1ae774..01897b30 100644 --- a/library/lib/platforms/glfw/glfw_input.cpp +++ b/library/lib/platforms/glfw/glfw_input.cpp @@ -125,7 +125,11 @@ static inline int getTouchState() static void glfwTouchCallback(GLFWwindow* window, int touch, int action, double xpos, double ypos) { +#if defined(BOREALIS_USE_D3D11) + float scale = 1.0f / Application::windowScale; +#else double scaleFactor = Application::getPlatform()->getVideoContext()->getScaleFactor() / Application::windowScale; +#endif touchState.fingerId = 0; touchState.pressed = action != GLFW_RELEASE; touchState.position.x = (float)(xpos * scaleFactor);