Commits

Anonymous committed bf9317f

swap pixels_array endian-ness

  • Participants
  • Parent commits 70a06b6

Comments (0)

Files changed (3)

 - Francis Irving for Debian packaging
 - Niki Spahiev for bugfixes
 - Jan Ekhol, Ray Kelm, and Peter Nicolai for initial design reviews
+- And our dutiful bug hunters; Angus Young
 
 There's many more folks out there who've submitted helpful ideas,
 kept this project going, and basically made my life easer; thanks!
 # BREAK = change breaks existing code
 # BUG   = fixed a bug that was crashing
 
-Mar 29, 2002
+Apr 03, 2001
+	swapped endian-ness for pixels_alpha()
+
+Mar 29, 2001
 	fixed key.set_mods() (thanks rubysdl)
 	rework setup scripts for 1.0 release
 	relaxed sdl version checking
 
 	/*must discover information about how data is packed*/
 	if(surf->format->Amask == 0xff<<24)
+		startpixel = ((char*)surf->pixels) + (lilendian ? 3 : 0);
+	else if(surf->format->Amask == 0xff)
 		startpixel = ((char*)surf->pixels) + (lilendian ? 0 : 3);
-	else if(surf->format->Amask == 0xff)
-		startpixel = ((char*)surf->pixels) + (lilendian ? 3 : 0);
 	else
 		return RAISE(PyExc_ValueError, "unsupport colormasks for alpha reference array");