Author: ArcRiley
Date: 2008-03-05 14:04:31 -0500 (Wed, 05 Mar 2008)
New Revision: 1048

Modified:
   trunk/pysoy/src/_core/Screen-x11.pxi
Log:
Ticket #901 :
  * a few more cleanups for Screen (x11)


Modified: trunk/pysoy/src/_core/Screen-x11.pxi
===================================================================
--- trunk/pysoy/src/_core/Screen-x11.pxi        2008-03-05 19:02:09 UTC (rev 
1047)
+++ trunk/pysoy/src/_core/Screen-x11.pxi        2008-03-05 19:04:31 UTC (rev 
1048)
@@ -46,19 +46,19 @@
     if _display==NULL :
       _display = glx.XOpenDisplay(NULL)
       if _display==NULL :
-        _screens.unlock()
+        _screens.iterDone()
         raise SystemError('Could not open display')
     if type(_sId)==int and _sId<0 :
       _sId = glx.DefaultScreen(_display)
     if type(_sId)==int and _sId>=0 and _sId<glx.ScreenCount(_display) :
       for _i from 0 <= _i < _screens._current :
         if (<Screen> _screens._list[_i])._screenID == _sId :
-          _screens.unlock()
+          _screens.iterDone()
           raise ValueError('This screen has already been opened')    
       self._screen = glx.ScreenOfDisplay(_display, _sId)
       self._screenID = _sId
     else :
-      _screens.unlock()
+      _screens.iterDone()
       raise('Requested screen %d not available' % _sId)
     self._wmDelWin = glx.XInternAtom(_display, "WM_DELETE_WINDOW", 0)
     _glxAttrs[0]  = glx.GLX_RGBA

_______________________________________________
PySoy-SVN mailing list
PySoy-SVN@pysoy.org
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to