Commits

Anonymous committed 3f896f1

fixed locking subsurfaces

Comments (0)

Files changed (2)

 
 Mar 21, 2001
 	initial support for compiling on mac
+	fixed odd case with locking subsurfaces
 
 Mar 20, 2001
 	font and mixer now properly auto quit()
 static int PySurface_Lock(PyObject* surfobj)
 {
 	PySurfaceObject* surf = (PySurfaceObject*)surfobj;
-	if(!surf->lockcount && !surf->surf->pixels)
+	if(!surf->lockcount && (surf->subsurface || !surf->surf->pixels))
 	{
 		if(surf->subsurface)
 			PySurface_Prep(surfobj);