New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qt5: GLSL renderers draw signal at wrong scale and position #8417
Comments
Commented by: rryan |
Commented by: rryan OpenGL version 4.1 |
Commented by: rryan OSX 10.11.2 |
Commented by: rryan I haven't debugged yet, but I think this may be because of my hidpi display: http://blog.qt.io/blog/2013/04/25/retina-display-support-for-mac-os-ios-and-x11/ """ OpenGL operates in device pixel space. For example, the width and height passed to glViewport should be in device pixels. QGLWidget::resizeGL() gives the width and height in device pixels. However, QGLWidget::width() is really QWidget::width() which returns a value in device-independent pixels. Resolve it by multiplying with widget->windowHandle()->devicePixelRatio() if needed. Now that devicePIxelRatio is exposed by Qt we need to scale the widget width/height we pass to the shaders by it. |
Issue closed with status Fix Released. |
Reported by: rryan
Date: 2016-01-03T19:30:32Z
Status: Fix Released
Importance: Medium
Launchpad Issue: lp1530697
Tags: qt5
Attachments: [Screen Shot 2016-01-03 at 2.29.51 PM.png](https://bugs.launchpad.net/bugs/1530697/+attachment/4543553/+files/Screen Shot 2016-01-03 at 2.29.51 PM.png)
[Impact]
With qt5 the GLSL renderer draw signal at wrong scale and position. See attachment in comment #1.
[Test Case]
[Regression Potential]
There might be regressions with other waveforms.
[Other Info]
The Cosmic 2.1.3 build is also effected, see: https://bugs.launchpad.net/ubuntu/+source/mixxx/+bug/1804513
The text was updated successfully, but these errors were encountered: