Mercurial > parpg-source
diff application.py @ 152:76041ed90a5d
Updated settings to use the MouseSensitivity, MouseAcceleration, GLUseNPOT and GLUseFramebuffer options.
author | KarstenBock@gmx.net |
---|---|
date | Wed, 26 Oct 2011 13:01:49 +0200 |
parents | 80672955ab70 |
children | b3b82c2aebee |
line wrap: on
line diff
--- a/application.py Fri Oct 21 13:39:40 2011 +0200 +++ b/application.py Wed Oct 26 13:01:49 2011 +0200 @@ -168,6 +168,7 @@ """ engineSetting = self.engine.getSettings() + assert(isinstance(engineSetting, fife.EngineSettings)) engineSetting.setDefaultFontGlyphs(self._setting.fife.FontGlyphs) engineSetting.setDefaultFontPath( '{0}/fonts/{1}'.format(self._setting.parpg.DataPath, @@ -179,6 +180,8 @@ engineSetting.setSDLRemoveFakeAlpha( self._setting.fife.SDLRemoveFakeAlpha ) + engineSetting.setGLUseFramebuffer(self._setting.fife.GLUseFramebuffer) + engineSetting.setGLUseNPOT(self._setting.fife.GLUseNPOT) engineSetting.setScreenWidth(self._setting.fife.ScreenWidth) engineSetting.setScreenHeight(self._setting.fife.ScreenHeight) engineSetting.setRenderBackend(self._setting.fife.RenderBackend) @@ -186,7 +189,11 @@ engineSetting.setVideoDriver(self._setting.fife.VideoDriver) engineSetting.setLightingModel(self._setting.fife.Lighting) engineSetting.setColorKeyEnabled(self._setting.fife.ColorKeyEnabled) - + engineSetting.setMouseSensitivity(self._setting.fife.MouseSensitivity) + engineSetting.setMouseAcceleration( + self._setting.fife.MouseAcceleration + ) + engineSetting.setColorKey(*[int(digit) for digit in self._setting.fife.ColorKey])