summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-07-17 10:25:06 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-07-17 10:25:06 (GMT)
commit7ddc0e5fb477a9bacb4093878fb0ab0d083b7e3f (patch)
tree9c23364b0934841212cb8c0d4c645c7037a96b61 /src/plugins
parentc90de88fca469c58cdfc29039d1597cc0c8cd9b2 (diff)
downloadQt-7ddc0e5fb477a9bacb4093878fb0ab0d083b7e3f.zip
Qt-7ddc0e5fb477a9bacb4093878fb0ab0d083b7e3f.tar.gz
Qt-7ddc0e5fb477a9bacb4093878fb0ab0d083b7e3f.tar.bz2
Remove unused function in QDirectFBPaintEngine
drawColorSpan is never called from anywhere so we might as well get rid of the code. Reviewed-by: TrustMe
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp32
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h2
2 files changed, 0 insertions, 34 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
index 305d5be..2245acc 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
@@ -672,38 +672,6 @@ void QDirectFBPaintEngine::fillRect(const QRectF &rect, const QColor &color)
}
}
-void QDirectFBPaintEngine::drawColorSpans(const QSpan *spans, int count,
- uint color)
-{
- Q_D(QDirectFBPaintEngine);
- color = INV_PREMUL(color);
-
- QVarLengthArray<DFBRegion> lines(count);
- int j = 0;
- for (int i = 0; i < count; ++i) {
- if (spans[i].coverage == 255) {
- lines[j].x1 = spans[i].x;
- lines[j].y1 = spans[i].y;
- lines[j].x2 = spans[i].x + spans[i].len - 1;
- lines[j].y2 = spans[i].y;
- ++j;
- } else {
- DFBSpan span = { spans[i].x, spans[i].len };
- uint c = BYTE_MUL(color, spans[i].coverage);
- // ### how does this play with setDFBColor
- d->surface->SetColor(d->surface,
- qRed(c), qGreen(c), qBlue(c), qAlpha(c));
- d->surface->FillSpans(d->surface, spans[i].y, &span, 1);
- }
- }
- if (j > 0) {
- d->surface->SetColor(d->surface,
- qRed(color), qGreen(color), qBlue(color),
- qAlpha(color));
- d->surface->DrawLines(d->surface, lines.data(), j);
- }
-}
-
void QDirectFBPaintEngine::drawBufferSpan(const uint *buffer, int bufsize,
int x, int y, int length,
uint const_alpha)
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h
index 8c5877b..e57fcc9 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h
@@ -78,11 +78,9 @@ public:
void drawPixmap(const QRectF &r, const QPixmap &pixmap, const QRectF &sr);
void drawTiledPixmap(const QRectF &r, const QPixmap &pm, const QPointF &sr);
- void drawColorSpans(const QSpan *spans, int count, uint color);
void drawBufferSpan(const uint *buffer, int bufsize,
int x, int y, int length, uint const_alpha);
-
// The following methods simply lock the surface & call the base implementation
void stroke(const QVectorPath &path, const QPen &pen);
void drawPath(const QPainterPath &path);