summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon
diff options
context:
space:
mode:
authorGareth Stockwell <gareth.stockwell@sosco.com>2009-09-17 17:25:23 (GMT)
committerFrans Englich <frans.englich@nokia.com>2009-09-23 12:39:39 (GMT)
commitbe44bb7e43c76305133b09918c3ad8d3f9b2bed5 (patch)
treebdc20f8da4446c547f1e84380ca5072b274653cc /src/3rdparty/phonon
parent613e1ea9ef9e1cc7fdbfa5882432e9e6df003544 (diff)
downloadQt-be44bb7e43c76305133b09918c3ad8d3f9b2bed5.zip
Qt-be44bb7e43c76305133b09918c3ad8d3f9b2bed5.tar.gz
Qt-be44bb7e43c76305133b09918c3ad8d3f9b2bed5.tar.bz2
Added extra trace for investigation of 16MU blitting behaviour
Diffstat (limited to 'src/3rdparty/phonon')
-rw-r--r--src/3rdparty/phonon/mmf/videooutput.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/3rdparty/phonon/mmf/videooutput.cpp b/src/3rdparty/phonon/mmf/videooutput.cpp
index c2bd775..d0f8707 100644
--- a/src/3rdparty/phonon/mmf/videooutput.cpp
+++ b/src/3rdparty/phonon/mmf/videooutput.cpp
@@ -144,7 +144,21 @@ void MMF::VideoOutput::transparentFill(const QVector<QRect>& rects)
QImage *image = window()->windowSurface()->buffer(window());
QRgb *data = reinterpret_cast<QRgb *>(image->bits());
const int row_stride = image->bytesPerLine() / 4;
-
+
+ // Paint the entire surface
+ const int imageWidth = image->size().width();
+ const int imageHeight = image->size().height();
+ QRgb *row = data;
+ for(int y=0; y<imageHeight; ++y) {
+
+ QRgb *ptr = row;
+ for(int x=0; x<imageWidth; ++x)
+ *ptr++ = 0xff0000ff;
+ row += row_stride;
+ }
+
+/*
+ // Paint the specified regions
for (QVector<QRect>::const_iterator it = rects.begin(); it != rects.end(); ++it) {
const QRect& rect = *it;
@@ -170,6 +184,7 @@ void MMF::VideoOutput::transparentFill(const QVector<QRect>& rects)
row += row_stride;
}
}
+*/
TRACE_EXIT_0();
}