Try to fix displaced window content on 2% of startups.

Don't know why this seems to work.
master
Cyp 2011-11-26 21:49:28 +01:00
parent 2f816f5bf4
commit 5cb84fc273
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@ void QtGameWidget::initializeGL()
QtGameWidget::QtGameWidget(QSize curResolution, const QGLFormat &format, QWidget *parent, Qt::WindowFlags f, const QGLWidget *shareWidget)
: QGLWidget(adjustFormat(format), parent, shareWidget, f), mOriginalResolution(0, 0), mMinimumSize(0, 0)
{
QGLWidget::setFixedSize(curResolution); // Don't know whether this needs to be done here, but if not, the window contents are displaced 2% of the time.
mWantedSize = curResolution;
mResolutionChanged = false;
updateResolutionList();