Fixes warnings about unused variables
Reviewed-by: Samuel (cherry picked from commit ddd253e14318af45e5c56df736028b88257068c4)
This commit is contained in:
parent
e8ac3549c5
commit
bd64c94a26
@ -112,8 +112,6 @@ void qt_blend_rgb32_on_rgb32_sse2(uchar *destPixels, int dbpl,
|
||||
|
||||
// First, align dest to 16 bytes:
|
||||
ALIGNMENT_PROLOGUE_16BYTES(dst, x, w) {
|
||||
quint32 s = src[x];
|
||||
s = BYTE_MUL(s, const_alpha);
|
||||
dst[x] = INTERPOLATE_PIXEL_255(src[x], const_alpha, dst[x], one_minus_const_alpha);
|
||||
}
|
||||
|
||||
@ -127,8 +125,6 @@ void qt_blend_rgb32_on_rgb32_sse2(uchar *destPixels, int dbpl,
|
||||
}
|
||||
}
|
||||
for (; x<w; ++x) {
|
||||
quint32 s = src[x];
|
||||
s = BYTE_MUL(s, const_alpha);
|
||||
dst[x] = INTERPOLATE_PIXEL_255(src[x], const_alpha, dst[x], one_minus_const_alpha);
|
||||
}
|
||||
dst = (quint32 *)(((uchar *) dst) + dbpl);
|
||||
|
@ -535,16 +535,6 @@ QString QPaintBuffer::commandDescription(int command) const
|
||||
QTextItemInt &ti = (*tiCopy)();
|
||||
QString text(ti.text());
|
||||
|
||||
QFont font(ti.font());
|
||||
font.setUnderline(false);
|
||||
font.setStrikeOut(false);
|
||||
font.setOverline(false);
|
||||
|
||||
const QTextItemInt &si = static_cast<const QTextItemInt &>(ti);
|
||||
qreal justificationWidth = 0;
|
||||
if (si.justified)
|
||||
justificationWidth = si.width.toReal();
|
||||
|
||||
debug << "Cmd_DrawTextItem:" << pos << " " << text;
|
||||
break; }
|
||||
case QPaintBufferPrivate::Cmd_SystemStateChanged: {
|
||||
|
@ -1611,8 +1611,6 @@ void QX11PaintEnginePrivate::fillPolygon_dev(const QPointF *polygonPoints, int p
|
||||
&& (fill.style() != Qt::NoBrush)
|
||||
&& ((has_fill_texture && fill.texture().hasAlpha()) || antialias || !solid_fill || has_alpha_pen != has_alpha_brush))
|
||||
{
|
||||
QRect br = tessellator->tessellate((QPointF *)clippedPoints, clippedCount,
|
||||
mode == QPaintEngine::WindingMode);
|
||||
if (tessellator->size > 0) {
|
||||
XRenderPictureAttributes attrs;
|
||||
attrs.poly_edge = antialias ? PolyEdgeSmooth : PolyEdgeSharp;
|
||||
@ -1771,7 +1769,6 @@ void QX11PaintEngine::drawPath(const QPainterPath &path)
|
||||
Q_D(QX11PaintEngine);
|
||||
if (path.isEmpty())
|
||||
return;
|
||||
QTransform old_matrix = d->matrix;
|
||||
|
||||
if (d->has_brush)
|
||||
d->fillPath(path, QX11PaintEnginePrivate::BrushGC, true);
|
||||
|
@ -1126,6 +1126,7 @@ void QPainterPath::addText(const QPointF &point, const QFont &f, const QString &
|
||||
QTextEngine *eng = layout.engine();
|
||||
layout.beginLayout();
|
||||
QTextLine line = layout.createLine();
|
||||
Q_UNUSED(line);
|
||||
layout.endLayout();
|
||||
const QScriptLine &sl = eng->lines[0];
|
||||
if (!sl.length || !eng->layoutData)
|
||||
|
@ -552,6 +552,7 @@ void QStroker::joinPoints(qfixed focal_x, qfixed focal_y, const QLineF &nextLine
|
||||
|
||||
// // line to the beginning of the arc segment, (should not be needed).
|
||||
// emitLineTo(qt_real_to_fixed(curve_start.x()), qt_real_to_fixed(curve_start.y()));
|
||||
Q_UNUSED(curve_start);
|
||||
|
||||
for (int i=0; i<point_count; i+=3) {
|
||||
emitCubicTo(qt_real_to_fixed(curves[i].x()),
|
||||
|
Loading…
Reference in New Issue
Block a user