Commits

Anonymous committed cfe327e

blit protection for alpha onto 8bit relaxed

  • Participants
  • Parent commits 464acd6

Comments (0)

Files changed (2)

 # BREAK = change breaks existing code
 # BUG	= fixed a bug that was (or could have been) crashing
 
+November 20, 2001
+	added pygame.sprite.Group.Update()
+	Surface.blit() was too overzealous pretecting alpha to 8bit
+
 November 19, 2001
         fixed image.fromstring() for "RGBA" mode
 

File src/surface.c

 	if(dest->flags & SDL_OPENGL && !(dest->flags&(SDL_OPENGLBLIT&~SDL_OPENGL)))
 		return RAISE(PyExc_SDLError, "Cannot blit to OPENGL Surfaces (OPENGLBLIT is ok)");
 
-	if(dest->format->BytesPerPixel == 1 && (src->flags&SDL_SRCALPHA || src->format->Amask))
+	if(dest->format->BytesPerPixel == 1 && (src->flags&SDL_SRCALPHA && src->format->Amask))
 		return RAISE(PyExc_SDLError, "Alpha blits to 8bit surfaces currently unimplemented");
 
 	if((src_rect = GameRect_FromObject(argpos, &temp)))