summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2011-08-26 05:51:13 +0000
committerNanang Izzuddin <nanang@teluu.com>2011-08-26 05:51:13 +0000
commit0eb1ccb735c3df5ca5bda3f0c64099bd8ac186f0 (patch)
tree141d4d8ff5c8dd3617c4ba6bda3d458511691c1c
parent39519e800c7e9c861bd6a7972868e48d4f473bb0 (diff)
Re #1327 (vidgui): Minor fix on windows VidWin::attach(), applying window style WS_CHILD to unattached/unparented SDL window causes strange behavior: after parented to a QWidget, it doesn't follow the parent/QWidget movement but its coordinate is relative to the parent/QWidget.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3727 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip-apps/src/vidgui/vidwin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pjsip-apps/src/vidgui/vidwin.cpp b/pjsip-apps/src/vidgui/vidwin.cpp
index fd941415..1148a020 100644
--- a/pjsip-apps/src/vidgui/vidwin.cpp
+++ b/pjsip-apps/src/vidgui/vidwin.cpp
@@ -102,7 +102,7 @@ void VidWin::attach()
HWND new_parent = (HWND)winId();
orig_parent = GetParent(w);
- SetWindowLong(w, GWL_STYLE, WS_CHILD);
+ //SetWindowLong(w, GWL_STYLE, WS_CHILD);
SetParent(w, new_parent);
TRACE_("%p new parent handle = %p", w, new_parent);
}