mirror of
https://github.com/leozide/leocad
synced 2024-11-16 07:47:27 +01:00
Fixed retina displays again. Fixes #447.
This commit is contained in:
parent
fd087a177d
commit
4f8252eff9
1 changed files with 6 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue