From: <Blu...@us...> - 2009-03-23 21:54:47
|
Revision: 290 http://virtplayground.svn.sourceforge.net/virtplayground/?rev=290&view=rev Author: BlueWolf_ Date: 2009-03-23 21:54:44 +0000 (Mon, 23 Mar 2009) Log Message: ----------- Updated todo and fixed a bug in forceUpdate with threading Modified Paths: -------------- trunk/VP/TODO trunk/VP/interface.py Modified: trunk/VP/TODO =================================================================== --- trunk/VP/TODO 2009-03-23 21:50:06 UTC (rev 289) +++ trunk/VP/TODO 2009-03-23 21:54:44 UTC (rev 290) @@ -22,14 +22,9 @@ Playground * Creating the avatars (the images) -* Finishing up Static avatar (Z coords) (assigned to chozone) -* Finishing up multidir avatar (Z coords) (assigned to chozone) -* Finishing up multiparts avatar (Z coords) (assigned to chozone) -* Finishing up multidir_parts avatar (Z coords) (assigned to chozone) * Walls * Smooth walking * Jumping -* Running (assigned to chozone) * Walking/running bit slower when walking diagonally (assigned to chozone) * Chat balloons (assigned to K-4U) Modified: trunk/VP/interface.py =================================================================== --- trunk/VP/interface.py 2009-03-23 21:50:06 UTC (rev 289) +++ trunk/VP/interface.py 2009-03-23 21:54:44 UTC (rev 290) @@ -19,6 +19,7 @@ #4 - Menu/tooltips self.lock = threading.Lock() + self.updateLock = threading.Lock() #Lock for forceUpdate self.needUpdate = [] @@ -196,6 +197,8 @@ """This will the interface use to actually update the screen""" if self.needUpdate != []: + self.updateLock.acquire() + #print 'Interface.forceUpdate' + str(self.needUpdate) if self.needUpdate == [None]: #Fullscreen update, yeah! @@ -207,6 +210,8 @@ for module in self.openModules[prio]: module.update(self.screen, rect_list) pygame.display.update(rect_list) + + self.updateLock.release() #Change the cursor, if needed if self.cursor != self.cursorNew: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |