Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit 789b13de85c47c22dd47f5388dfce173ec7c6b54
- Author: Andreas Kling <andreas.kling@nokia.com>
- Date: Mon Dec 6 11:22:43 2010 +0100
- qgrayraster: Don't iterate over more rows than is necessary
- Since we're reusing the TCell vectors now, we should limit ourselves to
- count_ey iterations, rather than ycells.size().
- Reviewed-by: pending
- diff --git a/src/gui/painting/qgrayraster.cpp b/src/gui/painting/qgrayraster.cpp
- index 8826e23..31984a1 100644
- --- a/src/gui/painting/qgrayraster.cpp
- +++ b/src/gui/painting/qgrayraster.cpp
- @@ -939,7 +939,7 @@ static void gray_hline(QGrayRaster* raster, TCoord x, TCoord y, TPos area, int a
- /* to be called while in the debugger */
- void gray_dump_cells(QGrayRaster* raster)
- {
- - for (int y = 0; y < raster->ycells.size(); ++y)
- + for (int y = 0; y < raster->count_ey; ++y)
- {
- QList<int> keys;
- @@ -971,7 +971,7 @@ static void gray_sweep(QGrayRaster* raster, const QT_FT_Bitmap* target)
- Q_ASSERT(raster);
- Q_UNUSED(target);
- - for (int y = 0; y < raster->ycells.size(); ++y) {
- + for (int y = 0; y < raster->count_ey; ++y) {
- TCoord cover = 0;
- TCoord x = 0;
Add Comment
Please, Sign In to add comment