changeset 656:99e3ef63495b

* The RPG and Shooter demos now clear the screen when in OpenGL mode * Small update to the soundmanager to stop the stack overflow problem.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 22 Oct 2010 16:01:57 +0000
parents cdebc30c9c4a
children d30ae69a2a20
files demos/rpg/scripts/rpg.py demos/shooter/run.py engine/python/fife/extensions/soundmanager.py
diffstat 3 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/demos/rpg/scripts/rpg.py	Thu Oct 21 20:00:36 2010 +0000
+++ b/demos/rpg/scripts/rpg.py	Fri Oct 22 16:01:57 2010 +0000
@@ -148,6 +148,8 @@
 		super(RPGApplication,self).__init__(TDS)
 		self._settings = TDS
 		
+		self.engine.getRenderBackend().setClearBackBuffer(True)
+		
 		self._gamecontroller = GameController(self, self.engine, self._settings)
 
 	def createListener(self):
--- a/demos/shooter/run.py	Thu Oct 21 20:00:36 2010 +0000
+++ b/demos/shooter/run.py	Fri Oct 22 16:01:57 2010 +0000
@@ -73,6 +73,8 @@
 		
 		self._world = world.World(self, self.engine, self._setting)
 		self._listener = ApplicationListener(self.engine, self._world)
+		
+		self.engine.getRenderBackend().setClearBackBuffer(True)
 
 	def requestQuit(self):
 		cmd = fife.Command()
--- a/engine/python/fife/extensions/soundmanager.py	Thu Oct 21 20:00:36 2010 +0000
+++ b/engine/python/fife/extensions/soundmanager.py	Fri Oct 22 16:01:57 2010 +0000
@@ -283,7 +283,6 @@
 				if clip.looping:
 					repeat = 0
 					def real_callback(clip):
-						clip.callback()
 						clip.fifeemitter.stop()
 						clip.fifeemitter.setGain(float(clip.gain)/255.0)
 						if self.listenerposition and clip.position: