summaryrefslogtreecommitdiffstats
path: root/basicsuite/shared/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'basicsuite/shared/engine.cpp')
-rw-r--r--basicsuite/shared/engine.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/basicsuite/shared/engine.cpp b/basicsuite/shared/engine.cpp
index da021e5..09132c1 100644
--- a/basicsuite/shared/engine.cpp
+++ b/basicsuite/shared/engine.cpp
@@ -2,7 +2,7 @@
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
+** For any questions to Digia, please use contact form at http://www.qt.io
**
** This file is part of Qt Enterprise Embedded.
**
@@ -12,7 +12,7 @@
** a written agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
+** contact form at http://www.qt.io
**
****************************************************************************/
#include "engine.h"
@@ -32,4 +32,6 @@ DummyEngine::DummyEngine(QObject *parent)
float high = 20;
float screenSizeCM = qMax<float>(qMin(m_screenSize.width(), m_screenSize.height()) / m_dpcm, low);
m_dpcm *= (screenSizeCM - low) / (high - low) * 0.5 + 0.5;
+ m_screenWidth = m_screenSize.width();
+ m_screenHeight = m_screenSize.height();
}