summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon
diff options
context:
space:
mode:
authorGareth Stockwell <gareth.stockwell@sosco.com>2009-09-17 13:42:10 (GMT)
committerFrans Englich <frans.englich@nokia.com>2009-09-23 12:39:24 (GMT)
commitcabf0776a3e879aa80e4dc01fd470248c429d9b0 (patch)
treece5b7a9543616df517142f1c982d626132f56fec /src/3rdparty/phonon
parent8a6da961602d9e372a9ccf88332889b4dffda825 (diff)
downloadQt-cabf0776a3e879aa80e4dc01fd470248c429d9b0.zip
Qt-cabf0776a3e879aa80e4dc01fd470248c429d9b0.tar.gz
Qt-cabf0776a3e879aa80e4dc01fd470248c429d9b0.tar.bz2
Modified transparentFill to allow RGBA color to be specified more easily, for testing
Diffstat (limited to 'src/3rdparty/phonon')
-rw-r--r--src/3rdparty/phonon/mmf/videooutput.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/3rdparty/phonon/mmf/videooutput.cpp b/src/3rdparty/phonon/mmf/videooutput.cpp
index 27e4f54..b1a2b4f 100644
--- a/src/3rdparty/phonon/mmf/videooutput.cpp
+++ b/src/3rdparty/phonon/mmf/videooutput.cpp
@@ -171,8 +171,10 @@ void MMF::VideoOutput::transparentFill(const QVector<QRect>& rects)
// Note: not using the optimised qt_memfill function implemented in
// gui/painting/qdrawhelper.cpp - can we somehow link against this?
- //qt_memfill(row + x_start, 0U, width);
- memset(row + x_start, 0, width*4);
+ QRgb *ptr = row + x_start;
+ for(int x = 0; x < width; ++x)
+ *ptr++ = 0x00000000;
+
row += row_stride;
}
}