Index: debugger/QT/SkRasterWidget.cpp |
diff --git a/debugger/QT/SkRasterWidget.cpp b/debugger/QT/SkRasterWidget.cpp |
index db3d00f0740d3b53bd1abb07f0ee4e02a7085384..3817c0e0ee9ab1ef9ba83ed32eee4e1789f8be26 100644 |
--- a/debugger/QT/SkRasterWidget.cpp |
+++ b/debugger/QT/SkRasterWidget.cpp |
@@ -6,7 +6,6 @@ |
* found in the LICENSE file. |
*/ |
- |
#include "SkRasterWidget.h" |
SkRasterWidget::SkRasterWidget(SkDebugger *debugger) : QWidget() { |
@@ -49,7 +48,11 @@ void SkRasterWidget::paintEvent(QPaintEvent* event) { |
QImage image((uchar *)fBitmap.getPixels(), fBitmap.width(), |
fBitmap.height(), QImage::Format_ARGB32_Premultiplied); |
+#if SK_R32_SHIFT == 0 |
+ painter.drawImage(origin, image.rgbSwapped()); |
+#else |
painter.drawImage(origin, image); |
+#endif |
painter.end(); |
emit drawComplete(); |
} |