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