ofImage on mac intel

hello!

playing around with the prerelease 006 today. When trying to implement a screenshot functionality with saveImage function of ofImage, the colors in the saved image are swapped(red and blue). Changing the little endian stuff in
void ofImage::saveImageFromPixels(…), Line 631 from

  
	  
	#ifdef TARGET_LITTLE_ENDIAN  
		if (pix.bytesPerPixel != 1) swapRgb(pix);  
	#endif  
	  
	  
	FIBITMAP * bmp	= getBmpFromPixels(pix);  
	  
	#ifdef TARGET_LITTLE_ENDIAN  
		if (pix.bytesPerPixel != 1) swapRgb(pix);  
	#endif  
	  

to

  
	/*  
	#ifdef TARGET_LITTLE_ENDIAN  
		if (pix.bytesPerPixel != 1) swapRgb(pix);  
	#endif  
	*/  
	  
	FIBITMAP * bmp	= getBmpFromPixels(pix);  
	/*  
	#ifdef TARGET_LITTLE_ENDIAN  
		if (pix.bytesPerPixel != 1) swapRgb(pix);  
	#endif  
	*/  

worked, at least for me.

Regards,
Gestalt

Hello.
There is still the same problem with actual prerelease 006.
I’m on Mac Intel, 10.5.6, Xcode 3.1.2.
Changing as described above, makes it work!

Regards,
Gestalt