[wx] Unreviewed build fix, fix the codepaths run under each CPU type.
authorkevino@webkit.org <kevino@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Jun 2011 18:30:42 +0000 (18:30 +0000)
committerkevino@webkit.org <kevino@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Jun 2011 18:30:42 +0000 (18:30 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@89264 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/image-decoders/wx/ImageDecoderWx.cpp

index 5708ecc..356158c 100644 (file)
@@ -1,3 +1,10 @@
+2011-06-20  Kevin Ollivier  <kevino@theolliviers.com>
+
+        [wx] Unreviewed build fix, fix the codepaths run under each CPU type.
+
+        * platform/image-decoders/wx/ImageDecoderWx.cpp:
+        (WebCore::ImageFrame::asNewNativeImage):
+
 2011-06-20  Ryosuke Niwa  <rniwa@webkit.org>
 
         Reviewed by Ojan Vafai.
 2011-06-20  Ryosuke Niwa  <rniwa@webkit.org>
 
         Reviewed by Ojan Vafai.
index 79aa119..a9614c3 100644 (file)
@@ -54,7 +54,7 @@ NativeImagePtr ImageFrame::asNewNativeImage() const
         WxPixelData::Iterator p(data);
         WxPixelData::Iterator rowStart = p; 
         for (size_t i = 0; i < m_size.width() * m_size.height() * sizeof(PixelData); i += sizeof(PixelData)) {
         WxPixelData::Iterator p(data);
         WxPixelData::Iterator rowStart = p; 
         for (size_t i = 0; i < m_size.width() * m_size.height() * sizeof(PixelData); i += sizeof(PixelData)) {
-#if CPU(BIG_ENDIAN)
+#if !CPU(BIG_ENDIAN)
             p.Alpha() = bytes[i + 3];
             p.Red() = bytes[i + 2];
             p.Green() = bytes[i + 1];
             p.Alpha() = bytes[i + 3];
             p.Red() = bytes[i + 2];
             p.Green() = bytes[i + 1];