diff --git a/panda/src/osxdisplay/osxGraphicsWindow.cxx b/panda/src/osxdisplay/osxGraphicsWindow.cxx index e6a844d189..f37a0f9fe1 100644 --- a/panda/src/osxdisplay/osxGraphicsWindow.cxx +++ b/panda/src/osxdisplay/osxGraphicsWindow.cxx @@ -232,7 +232,6 @@ static pascal OSStatus windowEvtHndlr (EventHandlerCallRef myHandler, EventRef e //////////////////////////////////////////////////////////////////// void osxGraphicsWindow::DoResize(void) { - osxdisplay_cat.debug() << "In Resize Out....." << _properties << "\n"; // only in window mode .. not full screen if(_osx_window != NULL && _is_fullsreen == false && _properties.has_size()) @@ -1388,33 +1387,20 @@ if (osxdisplay_cat.is_debug()) bool osxGraphicsWindow::do_reshape_request(int x_origin, int y_origin, bool has_origin,int x_size, int y_size) { - if(_osx_window == NULL) - return false; + if (_properties.get_fullscreen()) { + // Can't resize fullscreen windows that easily. + return false; + } - if (osxdisplay_cat.is_debug()) - osxdisplay_cat.debug() << "do_reshape_request " << x_origin <<" "<< y_origin <<" "<< has_origin<< " " << x_size <<" "<< y_size <<"\n"; - - - // location is optional - Rect rect; - if(has_origin) - { - rect.left = x_origin; - rect.top = y_origin; - } - else - { - GetWindowPortBounds (_osx_window, &rect); - } - - // ok set size .. not oprional - rect.left = rect.left + x_size; - rect.bottom = rect.top + y_size; - - SetWindowUserState(_osx_window, &rect); - SetWindowStandardState (_osx_window, &rect ); - - return true; + // For now, ignore the origin, since we seem to be getting a bogus + // origin of (0, 0). + /* + if (has_origin) { + MoveWindow(_osx_window, x_origin, y_origin, false); + } + */ + SizeWindow(_osx_window, x_size, y_size, false); + return true; } @@ -1458,7 +1444,6 @@ void osxGraphicsWindow::set_properties_now(WindowProperties &properties) osxdisplay_cat.debug() << "set_properties_now After Base Class" << properties << "\n"; - // if(_osx_window == NULL) // { // cerr<< "-------------------------------------set_properties_now out(not Window) Request=[" <