mirror of
https://github.com/leozide/leocad.git
synced 2026-07-28 04:07:11 +00:00
Fixed retina displays again. Fixes #447.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user