Fixed retina displays again. Fixes #447.

This commit is contained in:
Leonardo 2021-01-26 17:07:51 -08:00
parent fd087a177d
commit 4f8252eff9

View file

@ -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()