From d1e830f57b5f891012ab573376f6b39cdbeb5fea Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Thu, 7 Jul 2005 00:15:52 +0000 Subject: [PATCH] formatting --- direct/src/distributed/DoInterestManager.py | 3 ++- direct/src/showbase/ShowBase.py | 2 +- panda/src/display/graphicsEngine.cxx | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/direct/src/distributed/DoInterestManager.py b/direct/src/distributed/DoInterestManager.py index 3f79391fa6..9510e5e573 100755 --- a/direct/src/distributed/DoInterestManager.py +++ b/direct/src/distributed/DoInterestManager.py @@ -160,7 +160,8 @@ class DoInterestManager(DirectObject.DirectObject): """ assert self.notify.debugCall() if __debug__: - DoInterestManager._debug_currentInterests.append((contextId, scopeId, parentId, zoneIdList)) + DoInterestManager._debug_currentInterests.append( + (contextId, scopeId, parentId, zoneIdList)) datagram = PyDatagram() # Add message type datagram.addUint16(CLIENT_ADD_INTEREST) diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index 2deb691ec7..da9e411753 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -499,7 +499,7 @@ class ShowBase(DirectObject.DirectObject): # error not to open a window. raise StandardError, 'Could not open window.' - return (self.win != None) + return self.win != None def isMainWindowOpen(self): if self.win != None: diff --git a/panda/src/display/graphicsEngine.cxx b/panda/src/display/graphicsEngine.cxx index 72481c70b3..446a623371 100644 --- a/panda/src/display/graphicsEngine.cxx +++ b/panda/src/display/graphicsEngine.cxx @@ -803,7 +803,7 @@ cull_bin_draw(const GraphicsEngine::Windows &wlist) { win->clear(); int num_display_regions = win->get_num_active_display_regions(); - for (int i = 0; i < num_display_regions; i++) { + for (int i = 0; i < num_display_regions; ++i) { DisplayRegion *dr = win->get_active_display_region(i); if (dr != (DisplayRegion *)NULL) { cull_bin_draw(win, dr); @@ -1177,7 +1177,7 @@ do_add_window(GraphicsOutput *window, GraphicsStateGuardian *gsg, // us to assure that recently-added windows end up on the end of the // list. window->_internal_sort_index = _window_sort_index; - _window_sort_index++; + ++_window_sort_index; _windows_sorted = false; _windows.push_back(window);