Enlightenment CVS committal

Author  : mej
Project : eterm
Module  : Eterm

Dir     : eterm/Eterm/src


Modified Files:
        pixmap.c 


Log Message:
Tue Apr 26 11:45:39 2005                        Michael Jennings (mej)

Fixed incorrect WORDS_BIGENDIAN logic caught by Tres Melton
<[EMAIL PROTECTED]>.
----------------------------------------------------------------------

===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/pixmap.c,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -3 -r1.105 -r1.106
--- pixmap.c    19 Apr 2005 02:13:19 -0000      1.105
+++ pixmap.c    26 Apr 2005 15:48:07 -0000      1.106
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-static const char cvs_ident[] = "$Id: pixmap.c,v 1.105 2005/04/19 02:13:19 mej 
Exp $";
+static const char cvs_ident[] = "$Id: pixmap.c,v 1.106 2005/04/26 15:48:07 mej 
Exp $";
 
 #include "config.h"
 #include "feature.h"
@@ -52,6 +52,11 @@
 #include "term.h"
 #include "windows.h"
 
+/* FIXME:  Workaround for older versions of libast. */
+#ifndef WORDS_BIGENDIAN
+#  define WORDS_BIGENDIAN 0
+#endif
+
 /* Assembler routines */
 extern void shade_ximage_15_mmx(void *data, int bpl, int w, int h, int rm, int 
gm, int bm);
 extern void shade_ximage_16_mmx(void *data, int bpl, int w, int h, int rm, int 
gm, int bm);
@@ -1648,7 +1653,7 @@
             for (x = -(w * 4); x < 0; x += 4) {
                 int r, g, b;
 
-# ifdef WORDS_BIGENDIAN
+# if WORDS_BIGENDIAN
                 r = (ptr[x + 6] * rm) >> 8;
                 g = (ptr[x + 5] * gm) >> 8;
                 b = (ptr[x + 4] * bm) >> 8;
@@ -1671,7 +1676,7 @@
             for (x = -(w * 4); x < 0; x += 4) {
                 int r, g, b;
 
-# ifdef WORDS_BIGENDIAN
+# if WORDS_BIGENDIAN
                 r = (ptr[x + 6] * rm) >> 8;
                 g = (ptr[x + 5] * gm) >> 8;
                 b = (ptr[x + 4] * bm) >> 8;
@@ -1683,7 +1688,7 @@
                 r |= (!(r >> 8) - 1);
                 g |= (!(g >> 8) - 1);
                 b |= (!(b >> 8) - 1);
-# ifdef WORDS_BIGENDIAN
+# if WORDS_BIGENDIAN
                 ptr[x + 6] = r;
                 ptr[x + 5] = g;
                 ptr[x + 4] = b;
@@ -1713,7 +1718,7 @@
             for (x = -(w * 3); x < 0; x += 3) {
                 int r, g, b;
 
-# ifdef WORDS_BIGENDIAN
+# if WORDS_BIGENDIAN
                 r = (ptr[x + 0] * rm) >> 8;
                 g = (ptr[x + 1] * gm) >> 8;
                 b = (ptr[x + 2] * bm) >> 8;
@@ -1736,7 +1741,7 @@
             for (x = -(w * 3); x < 0; x += 3) {
                 int r, g, b;
 
-# ifdef WORDS_BIGENDIAN
+# if WORDS_BIGENDIAN
                 r = (ptr[x + 0] * rm) >> 8;
                 g = (ptr[x + 1] * gm) >> 8;
                 b = (ptr[x + 2] * bm) >> 8;
@@ -1748,7 +1753,7 @@
                 r |= (!(r >> 8) - 1);
                 g |= (!(g >> 8) - 1);
                 b |= (!(b >> 8) - 1);
-# ifdef WORDS_BIGENDIAN
+# if WORDS_BIGENDIAN
                 ptr[x + 0] = r;
                 ptr[x + 1] = g;
                 ptr[x + 2] = b;




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to