mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
set_parent_window(0) means NULL
This commit is contained in:
parent
c7e7cc8c1c
commit
dc3668bf0e
@ -102,7 +102,7 @@ get_int_handle() const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void NativeWindowHandle::IntHandle::
|
||||
output(ostream &out) const {
|
||||
out << _handle;
|
||||
out << "(" << _handle << ")";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -112,7 +112,7 @@ output(ostream &out) const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void NativeWindowHandle::SubprocessHandle::
|
||||
output(ostream &out) const {
|
||||
out << _filename;
|
||||
out << "(" << _filename << ")";
|
||||
}
|
||||
|
||||
#if defined(HAVE_X11) && !defined(CPPPARSER)
|
||||
|
@ -225,8 +225,12 @@ clear() {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void WindowProperties::
|
||||
set_parent_window(size_t parent) {
|
||||
PT(WindowHandle) handle = NativeWindowHandle::make_int(parent);
|
||||
set_parent_window(handle);
|
||||
if (parent == 0) {
|
||||
set_parent_window((WindowHandle *)NULL);
|
||||
} else {
|
||||
PT(WindowHandle) handle = NativeWindowHandle::make_int(parent);
|
||||
set_parent_window(handle);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user