Skip to content

Commit

Permalink
Remove unused internal flag from raster painting engine
Browse files Browse the repository at this point in the history
Just a leftover from code that has been replaced long ago.

Task-number: QTBUG-95237
Pick-to: 6.3 6.2 5.15
Change-Id: I8b1b0f319683ecfb2c93cc51a047616fe29770f7
Reviewed-by: Allan Sandfeld Jensen <[email protected]>
  • Loading branch information
aavit authored and Allan Sandfeld Jensen committed Dec 28, 2021
1 parent b076e84 commit 61a136b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
26 changes: 0 additions & 26 deletions src/gui/painting/qpaintengine_raster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,31 +526,6 @@ void QRasterPaintEngine::updateMatrix(const QTransform &matrix)
QRasterPaintEngineState *s = state();
// FALCON: get rid of this line, see drawImage call below.
s->matrix = matrix;
QTransform::TransformationType txop = s->matrix.type();

switch (txop) {

case QTransform::TxNone:
s->flags.int_xform = true;
break;

case QTransform::TxTranslate:
s->flags.int_xform = qreal(int(s->matrix.dx())) == s->matrix.dx()
&& qreal(int(s->matrix.dy())) == s->matrix.dy();
break;

case QTransform::TxScale:
s->flags.int_xform = qreal(int(s->matrix.dx())) == s->matrix.dx()
&& qreal(int(s->matrix.dy())) == s->matrix.dy()
&& qreal(int(s->matrix.m11())) == s->matrix.m11()
&& qreal(int(s->matrix.m22())) == s->matrix.m22();
break;

default: // shear / perspective...
s->flags.int_xform = false;
break;
}

s->flags.tx_noshear = qt_scaleForTransform(s->matrix, &s->txscale);

ensureOutlineMapper();
Expand Down Expand Up @@ -582,7 +557,6 @@ QRasterPaintEngineState::QRasterPaintEngineState()
flags.antialiased = false;
flags.bilinear = false;
flags.fast_text = true;
flags.int_xform = true;
flags.tx_noshear = true;
flags.fast_images = true;

Expand Down
1 change: 0 additions & 1 deletion src/gui/painting/qpaintengine_raster_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ class QRasterPaintEngineState : public QPainterState
uint antialiased : 1;
uint bilinear : 1;
uint fast_text : 1;
uint int_xform : 1;
uint tx_noshear : 1;
uint fast_images : 1;
};
Expand Down

0 comments on commit 61a136b

Please sign in to comment.