source/Display/Display.cpp: restore size when entering window mode.
This commit is contained in:
parent
d12d60b1ba
commit
fc38bb59a9
1 changed files with 2 additions and 1 deletions
|
|
@ -126,7 +126,8 @@ void Display::setVideoMode(Mode mode)
|
||||||
// Set stored decoration.
|
// Set stored decoration.
|
||||||
m_impl->setDecoration(m_description.decoration);
|
m_impl->setDecoration(m_description.decoration);
|
||||||
|
|
||||||
// Restore position.
|
// Restore size and position.
|
||||||
|
m_impl->setSize(m_description.mode.width, m_description.mode.height);
|
||||||
m_impl->setPosition(m_cachePos.x, m_cachePos.y);
|
m_impl->setPosition(m_cachePos.x, m_cachePos.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue