diff --git a/common/lc_viewwidget.cpp b/common/lc_viewwidget.cpp index fb74c2fd..bcfe06ff 100644 --- a/common/lc_viewwidget.cpp +++ b/common/lc_viewwidget.cpp @@ -73,7 +73,12 @@ void lcViewWidget::initializeGL() void lcViewWidget::resizeGL(int Width, int Height) { - mView->SetSize(Width, Height); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) + const float Scale = devicePixelRatioF(); +#else + const int Scale = devicePixelRatio(); +#endif + mView->SetSize(Width * Scale, Height * Scale); } void lcViewWidget::paintGL()