Commits

pygame  committed 0e03c0a

fixed locking error check

  • Participants
  • Parent commits 2512dea

Comments (0)

Files changed (1)

File src/surflock.c

 	{
 		if(surf->subsurface)
 			PySurface_Prep(surfobj);
-		if(SDL_LockSurface(surf->surf) >= -1)
+		if(SDL_LockSurface(surf->surf) == -1)
 		{
 			PyErr_SetString(PyExc_RuntimeError, "error locking surface");
 			return 0;