Author: spouliot
Date: 2006-08-29 13:32:10 -0400 (Tue, 29 Aug 2006)
New Revision: 64515

Modified:
   trunk/libgdiplus/src/ChangeLog
   trunk/libgdiplus/src/bitmap.c
Log:
2006-08-29  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * bitmap.c: Reintroduce WORDS_BIGENDIAN for performance reasons.



Modified: trunk/libgdiplus/src/ChangeLog
===================================================================
--- trunk/libgdiplus/src/ChangeLog      2006-08-29 16:10:09 UTC (rev 64514)
+++ trunk/libgdiplus/src/ChangeLog      2006-08-29 17:32:10 UTC (rev 64515)
@@ -1,3 +1,7 @@
+2006-08-29  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * bitmap.c: Reintroduce WORDS_BIGENDIAN for performance reasons.
+
 2006-08-28  Sebastien Pouliot  <[EMAIL PROTECTED]> 
 
        * bitmap.c: Remove WORDS_BIGENDIAN block and use endian-correct macro.

Modified: trunk/libgdiplus/src/bitmap.c
===================================================================
--- trunk/libgdiplus/src/bitmap.c       2006-08-29 16:10:09 UTC (rev 64514)
+++ trunk/libgdiplus/src/bitmap.c       2006-08-29 17:32:10 UTC (rev 64515)
@@ -1618,8 +1618,12 @@
                 * Note that pixel streams do not support 48- and 64-bit data 
at this time.
                 */
 
+#if WORDS_BIGENDIAN
                set_pixel_bgra (state->scan, 0, (pixel_value & 0xFF), 
(pixel_value >> 8) & 0xFF,
                        (pixel_value >> 16) & 0xFF, (pixel_value >> 24));
+#else
+               *(unsigned int *)state->scan = pixel_value;
+#endif
 
                 /* We always do 4 here, as the internal representation is 
always 32 bits */
                state->scan += 4;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to