From cabf0776a3e879aa80e4dc01fd470248c429d9b0 Mon Sep 17 00:00:00 2001 From: Gareth Stockwell Date: Thu, 17 Sep 2009 14:42:10 +0100 Subject: Modified transparentFill to allow RGBA color to be specified more easily, for testing --- src/3rdparty/phonon/mmf/videooutput.cpp | 6 ++++-- 1 file 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& 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; } } -- cgit v0.12