Skip to content
Snippets Groups Projects
Commit 89a96efe authored by Cory Quammen's avatar Cory Quammen Committed by Kitware Robot
Browse files

Merge topic 'revert_dpi_changes'


00a209da Revert "Set VTK DPI in the render window set in QVTKOpenGLWidget"

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: default avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Reviewed-by: default avatarMarcus D. Hanwell <marcus.hanwell@kitware.com>
Merge-request: !2668
parents b0709529 00a209da
No related branches found
No related tags found
No related merge requests found
......@@ -377,7 +377,6 @@ void QVTKOpenGLWidget::requireRenderWindowInitialization()
if (this->RenderWindow)
{
this->RenderWindow->SetReadyForRendering(false);
this->markCachedImageAsDirty();
}
}
......@@ -429,10 +428,6 @@ void QVTKOpenGLWidget::paintGL()
f->glGetRenderbufferParameteriv(GL_RENDERBUFFER, GL_RENDERBUFFER_SAMPLES, &samples);
this->RenderWindow->SetMultiSamples(static_cast<int>(samples));
// Set the render window's DPI so that graphical elements in charts, etc.
// are not super tiny.
this->RenderWindow->SetDPI(this->devicePixelRatio() * this->physicalDpiX());
// On OsX (if QSurfaceFormat::alphaBufferSize() > 0) or when using Mesa, we
// end up rendering fully transparent windows (see through background)
// unless we fill it with alpha=1.0 (See paraview/paraview#17159).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment