Guest User

Untitled

a guest
Jul 16th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. commit 789b13de85c47c22dd47f5388dfce173ec7c6b54
  2. Author: Andreas Kling <andreas.kling@nokia.com>
  3. Date: Mon Dec 6 11:22:43 2010 +0100
  4.  
  5. qgrayraster: Don't iterate over more rows than is necessary
  6.  
  7. Since we're reusing the TCell vectors now, we should limit ourselves to
  8. count_ey iterations, rather than ycells.size().
  9.  
  10. Reviewed-by: pending
  11.  
  12. diff --git a/src/gui/painting/qgrayraster.cpp b/src/gui/painting/qgrayraster.cpp
  13. index 8826e23..31984a1 100644
  14. --- a/src/gui/painting/qgrayraster.cpp
  15. +++ b/src/gui/painting/qgrayraster.cpp
  16. @@ -939,7 +939,7 @@ static void gray_hline(QGrayRaster* raster, TCoord x, TCoord y, TPos area, int a
  17. /* to be called while in the debugger */
  18. void gray_dump_cells(QGrayRaster* raster)
  19. {
  20. - for (int y = 0; y < raster->ycells.size(); ++y)
  21. + for (int y = 0; y < raster->count_ey; ++y)
  22. {
  23. QList<int> keys;
  24.  
  25. @@ -971,7 +971,7 @@ static void gray_sweep(QGrayRaster* raster, const QT_FT_Bitmap* target)
  26. Q_ASSERT(raster);
  27. Q_UNUSED(target);
  28.  
  29. - for (int y = 0; y < raster->ycells.size(); ++y) {
  30. + for (int y = 0; y < raster->count_ey; ++y) {
  31. TCoord cover = 0;
  32. TCoord x = 0;
Add Comment
Please, Sign In to add comment