[vlc-devel] commit: skins2: retain width/height values (Erwan Tulou )

git version control git at videolan.org
Thu Jan 14 15:21:22 CET 2010


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Wed Jan 13 10:56:19 2010 +0100| [da51738fbca97e928138964a8facf0e7ca55a9f1] | committer: Erwan Tulou 

skins2: retain width/height values

When reparenting, these values must be updated to avoid unnecessary resizing
if the move() method is called.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=da51738fbca97e928138964a8facf0e7ca55a9f1
---

 modules/gui/skins2/src/generic_window.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/gui/skins2/src/generic_window.cpp b/modules/gui/skins2/src/generic_window.cpp
index 5a666fa..2394c46 100644
--- a/modules/gui/skins2/src/generic_window.cpp
+++ b/modules/gui/skins2/src/generic_window.cpp
@@ -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 );
 }




More information about the vlc-devel mailing list