Commit da51738f authored by Erwan Tulou's avatar Erwan Tulou

skins2: retain width/height values

When reparenting, these values must be updated to avoid unnecessary resizing
if the move() method is called.
parent 70df626a
......@@ -170,6 +170,10 @@ void* GenericWindow::getOSHandle() const
void GenericWindow::setParent( GenericWindow* pParent, int x, int y, int w, int h )
{
// Update the window size
m_width = w;
m_height = h;
void* handle = pParent ? pParent->getOSHandle() : NULL;
m_pOsWindow->reparent( handle, x, y, w, h );
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment