Try to fix displaced window content on 2% of startups.
Don't know why this seems to work.master
parent
2f816f5bf4
commit
5cb84fc273
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue