Revision: 8194
          http://playerstage.svn.sourceforge.net/playerstage/?rev=8194&view=rev
Author:   natepak
Date:     2009-08-11 16:14:06 +0000 (Tue, 11 Aug 2009)

Log Message:
-----------
Added a BIGENDIAN check to Image.cc for compatibility with older version of 
FreeImage

Modified Paths:
--------------
    code/gazebo/trunk/server/rendering/Image.cc

Modified: code/gazebo/trunk/server/rendering/Image.cc
===================================================================
--- code/gazebo/trunk/server/rendering/Image.cc 2009-08-11 07:52:19 UTC (rev 
8193)
+++ code/gazebo/trunk/server/rendering/Image.cc 2009-08-11 16:14:06 UTC (rev 
8194)
@@ -174,14 +174,18 @@
       return clr;
     }
 
+#ifdef FREEIMAGE_COLORORDER
     if (FREEIMAGE_COLORORDER == FREEIMAGE_COLORORDER_RGB)
-    {
       clr.Set(  firgb.rgbRed, firgb.rgbGreen, firgb.rgbBlue);
-    }
     else
-    {
       clr.Set( firgb.rgbBlue, firgb.rgbGreen, firgb.rgbRed);
-    }
+#else
+#ifdef FREEIMAGE_BIGENDIAN
+    clr.Set(  firgb.rgbRed, firgb.rgbGreen, firgb.rgbBlue);
+#else
+    clr.Set( firgb.rgbBlue, firgb.rgbGreen, firgb.rgbRed);
+#endif
+#endif
 
   }
   else


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Playerstage-commit mailing list
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to