Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 9e9bfce2 authored by Emmet O'Neill's avatar Emmet O'Neill

Fixed OpenGL canvas rendering for High-DPI displays.

parent 9dbe11bb
......@@ -409,7 +409,7 @@ void KisOpenGLCanvas2::resizeGL(int width, int height)
// The given size is the widget size but here we actually want to give
// KisCoordinatesConverter the viewport size aligned to device pixels.
if (KisOpenGL::supportsRenderToFBO()) {
d->canvasFBO.reset(new QOpenGLFramebufferObject(QSize(width, height)));
d->canvasFBO.reset(new QOpenGLFramebufferObject(QSize(width * devicePixelRatio(), height * devicePixelRatio())));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment