Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/master' into release
Browse files Browse the repository at this point in the history
Conflicts:
	include/version.h
  • Loading branch information
febret committed Nov 9, 2015
2 parents cd9ba2c + 60a6954 commit 95bcfb1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
19 changes: 11 additions & 8 deletions src/omega/omegaPythonApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,17 @@ PyObject* omegaExit(PyObject* self, PyObject* args)
{
// Gracious exit code is broken.
SystemManager::instance()->postExitRequest();

// Do it the control-C way (it always works)
DisplaySystem* ds = SystemManager::instance()->getDisplaySystem();
// Explicitly kill sound server
SoundEnvironment* se = Engine::instance()->getSoundEnvironment();
if(se != NULL)
if(Engine::instance() != NULL)
{
se->getSoundManager()->stopAllSounds();
se->getSoundManager()->cleanupAllSounds();
// Do it the control-C way (it always works)
DisplaySystem* ds = SystemManager::instance()->getDisplaySystem();
// Explicitly kill sound server
SoundEnvironment* se = Engine::instance()->getSoundEnvironment();
if(se != NULL)
{
se->getSoundManager()->stopAllSounds();
se->getSoundManager()->cleanupAllSounds();
}
}
Py_INCREF(Py_None);
return Py_None;
Expand Down Expand Up @@ -1386,6 +1388,7 @@ BOOST_PYTHON_MODULE(omega)
.def_readwrite("panopticStereoEnabled", &DisplayConfig::panopticStereoEnabled)
.def_readwrite("canvasChangedCommand", &DisplayConfig::canvasChangedCommand)
PYAPI_METHOD(DisplayConfig, setCanvasRect)
PYAPI_METHOD(DisplayConfig, bringToFront)
PYAPI_GETTER(DisplayConfig, getCanvasRect)
//.add_property("canvasPixelRect",
// make_getter(&DisplayConfig::canvasPixelRect, PYAPI_RETURN_VALUE),
Expand Down
2 changes: 1 addition & 1 deletion system/desktop.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ config:
// Aspect ratio: 1.78
display:
{
type = "Equalizer";
type = "GLFW";
geometry = "ConfigPlanar";
numTiles = [1, 1];
referenceTile = [0, 0];
Expand Down

0 comments on commit 95bcfb1

Please sign in to comment.